commit a3751f5de22f7780d25cca77b23e690915a789a9 parent 2bdef6dd2a7572602aeb2efec76812769bcee246 Author: Folke Lemaitre <folke.lemaitre@gmail.com> Date: Thu, 1 Jun 2023 11:44:08 +0200 fix(api): dont change curwin for nvim_win_set_height Diffstat:
| M | src/nvim/api/window.c | | | 7 | +------ |
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/nvim/api/window.c b/src/nvim/api/window.c @@ -167,13 +167,8 @@ void nvim_win_set_height(Window window, Integer height, Error *err) return; } - win_T *savewin = curwin; - curwin = win; - curbuf = curwin->w_buffer; try_start(); - win_setheight((int)height); - curwin = savewin; - curbuf = curwin->w_buffer; + win_setheight_win((int)height, win); try_end(err); }