mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
fix(api): dont change curwin for nvim_win_set_height
This commit is contained in:
parent
2bdef6dd2a
commit
a3751f5de2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user