mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user