mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 04:18:18 +00:00
vim-patch:8.2.5088: value of cmod_verbose is a bit complicated to use
Problem: Value of cmod_verbose is a bit complicated to use.
Solution: Use zero for not set, value + 1 when set. (closes vim/vim#10564)
cd7496382e
Omit has_cmdmod(): only used for Vim9 script
This commit is contained in:
@@ -1920,9 +1920,7 @@ int nlua_do_ucmd(ucmd_T *cmd, exarg_T *eap, bool preview)
|
||||
lua_pushinteger(lstate, cmdmod.cmod_tab);
|
||||
lua_setfield(lstate, -2, "tab");
|
||||
|
||||
lua_pushinteger(lstate, (cmdmod.cmod_verbose != 0
|
||||
? cmdmod.cmod_verbose < 0 ? 0 : cmdmod.cmod_verbose
|
||||
: -1));
|
||||
lua_pushinteger(lstate, cmdmod.cmod_verbose - 1);
|
||||
lua_setfield(lstate, -2, "verbose");
|
||||
|
||||
if (cmdmod.cmod_split & WSP_ABOVE) {
|
||||
|
Reference in New Issue
Block a user