mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 20:08:17 +00:00
fix(api): dont change curwin for nvim_win_set_height
This commit is contained in:
@@ -167,13 +167,8 @@ void nvim_win_set_height(Window window, Integer height, Error *err)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
win_T *savewin = curwin;
|
|
||||||
curwin = win;
|
|
||||||
curbuf = curwin->w_buffer;
|
|
||||||
try_start();
|
try_start();
|
||||||
win_setheight((int)height);
|
win_setheight_win((int)height, win);
|
||||||
curwin = savewin;
|
|
||||||
curbuf = curwin->w_buffer;
|
|
||||||
try_end(err);
|
try_end(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user