mirror of
https://github.com/neovim/neovim
synced 2025-07-16 17:21:49 +00:00
fix(api): dont change curwin for nvim_win_set_width
This commit is contained in:
@ -209,13 +209,8 @@ void nvim_win_set_width(Window window, Integer width, Error *err)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
win_T *savewin = curwin;
|
|
||||||
curwin = win;
|
|
||||||
curbuf = curwin->w_buffer;
|
|
||||||
try_start();
|
try_start();
|
||||||
win_setwidth((int)width);
|
win_setwidth_win((int)width, win);
|
||||||
curwin = savewin;
|
|
||||||
curbuf = curwin->w_buffer;
|
|
||||||
try_end(err);
|
try_end(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user