mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
fix(api): dont change curwin for nvim_win_set_width
This commit is contained in:
parent
68e7a6a6dc
commit
1ff4562502
@ -209,13 +209,8 @@ void nvim_win_set_width(Window window, Integer width, Error *err)
|
||||
return;
|
||||
}
|
||||
|
||||
win_T *savewin = curwin;
|
||||
curwin = win;
|
||||
curbuf = curwin->w_buffer;
|
||||
try_start();
|
||||
win_setwidth((int)width);
|
||||
curwin = savewin;
|
||||
curbuf = curwin->w_buffer;
|
||||
win_setwidth_win((int)width, win);
|
||||
try_end(err);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user