diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-08 12:41:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-08 12:41:59 +0200 |
commit | f48aa68e0832e74aef19b1ac09f31bae3d231efe (patch) | |
tree | 102caf20be85af78aad8cc4695ae1e7abcf3baf3 /src/nvim/lua/executor.c | |
parent | 3cd22a34852b7453eecb4715806cc09dcc226e0c (diff) | |
parent | c84bd9e21fb1e5c55c9c5370b07271a6ae96f19c (diff) | |
download | rneovim-f48aa68e0832e74aef19b1ac09f31bae3d231efe.tar.gz rneovim-f48aa68e0832e74aef19b1ac09f31bae3d231efe.tar.bz2 rneovim-f48aa68e0832e74aef19b1ac09f31bae3d231efe.zip |
Merge pull request #18896 from famiu/fix/nvim_create_user_command/smods
fix(nvim_create_user_command): make `smods` work with `nvim_cmd`
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r-- | src/nvim/lua/executor.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index deff2347e0..3ba4d0d70c 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -1919,7 +1919,8 @@ int nlua_do_ucmd(ucmd_T *cmd, exarg_T *eap, bool preview) lua_pushinteger(lstate, cmdmod.tab); lua_setfield(lstate, -2, "tab"); - lua_pushinteger(lstate, p_verbose); + + lua_pushinteger(lstate, eap->verbose_save != -1 ? p_verbose : -1); lua_setfield(lstate, -2, "verbose"); if (cmdmod.split & WSP_ABOVE) { @@ -1937,9 +1938,9 @@ int nlua_do_ucmd(ucmd_T *cmd, exarg_T *eap, bool preview) lua_pushboolean(lstate, cmdmod.split & WSP_VERT); lua_setfield(lstate, -2, "vertical"); - lua_pushboolean(lstate, msg_silent != 0); + lua_pushboolean(lstate, eap->save_msg_silent != -1 ? (msg_silent != 0) : 0); lua_setfield(lstate, -2, "silent"); - lua_pushboolean(lstate, emsg_silent != 0); + lua_pushboolean(lstate, eap->did_esilent); lua_setfield(lstate, -2, "emsg_silent"); lua_pushboolean(lstate, eap->did_sandbox); lua_setfield(lstate, -2, "sandbox"); |