mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
refactor(cmdpreview): lift undo-checkpoint code
This is a mechanical lift of undo save-and-restore logic into... the module that owns undo.
This commit is contained in:
@@ -1222,7 +1222,7 @@ Object nvim_buf_call(Buffer buf, LuaRef fn, lua_State *lstate, Error *err)
|
||||
}
|
||||
|
||||
TRY_WRAP(err, {
|
||||
CtxSwitch cs;
|
||||
CtxSwitch cs = { 0 };
|
||||
ctx_switch(&cs, NULL, NULL, b, 0);
|
||||
|
||||
Array args = ARRAY_DICT_INIT;
|
||||
|
||||
Reference in New Issue
Block a user