mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #14531 from janlazo/revert-noblock
Revert "api/window: use the "noblock" variants in nvim_win_set_buf"
This commit is contained in:
commit
e8f0ff1d48
@ -54,7 +54,7 @@ void nvim_win_set_buf(Window window, Buffer buffer, Error *err)
|
||||
return;
|
||||
}
|
||||
|
||||
if (switch_win_noblock(&save_curwin, &save_curtab, win, tab, false) == FAIL) {
|
||||
if (switch_win(&save_curwin, &save_curtab, win, tab, false) == FAIL) {
|
||||
api_set_error(err,
|
||||
kErrorTypeException,
|
||||
"Failed to switch to window %d",
|
||||
@ -74,7 +74,7 @@ void nvim_win_set_buf(Window window, Buffer buffer, Error *err)
|
||||
// So do it now.
|
||||
validate_cursor();
|
||||
|
||||
restore_win_noblock(save_curwin, save_curtab, false);
|
||||
restore_win(save_curwin, save_curtab, false);
|
||||
}
|
||||
|
||||
/// Gets the (1,0)-indexed cursor position in the window. |api-indexing|
|
||||
|
Loading…
Reference in New Issue
Block a user