Merge pull request #20039 from zeertzjq/cmod-tab

fix(api)!: correctly deal with number before :tab
This commit is contained in:
bfredl
2022-09-06 10:32:23 +02:00
committed by GitHub
6 changed files with 54 additions and 31 deletions

View File

@@ -2082,7 +2082,7 @@ int nlua_do_ucmd(ucmd_T *cmd, exarg_T *eap, bool preview)
lua_newtable(lstate); // smods table
lua_pushinteger(lstate, cmdmod.cmod_tab);
lua_pushinteger(lstate, cmdmod.cmod_tab - 1);
lua_setfield(lstate, -2, "tab");
lua_pushinteger(lstate, cmdmod.cmod_verbose - 1);