mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
refactor: split WIN_EXECUTE() into two functions (#26627)
This commit is contained in:
@@ -435,10 +435,12 @@ Object nvim_win_call(Window window, LuaRef fun, Error *err)
|
||||
|
||||
try_start();
|
||||
Object res = OBJECT_INIT;
|
||||
WIN_EXECUTE(win, tabpage, {
|
||||
win_execute_T win_execute_args;
|
||||
if (win_execute_before(&win_execute_args, win, tabpage)) {
|
||||
Array args = ARRAY_DICT_INIT;
|
||||
res = nlua_call_ref(fun, NULL, args, true, err);
|
||||
});
|
||||
}
|
||||
win_execute_after(&win_execute_args);
|
||||
try_end(err);
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user