aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-06 10:32:23 +0200
committerGitHub <noreply@github.com>2022-09-06 10:32:23 +0200
commit05893aea391d91e159a41f03acc20049c7049510 (patch)
tree674c6b05a33b5276bf5897a21fdda4c7687ff69b /src/nvim/lua/executor.c
parent5b8d6e0b3200c5cb9d98cbdb4ed0afe2b4edd38d (diff)
parent1ef7720567b08caec0c077605fb2a01a9d6eafbc (diff)
downloadrneovim-05893aea391d91e159a41f03acc20049c7049510.tar.gz
rneovim-05893aea391d91e159a41f03acc20049c7049510.tar.bz2
rneovim-05893aea391d91e159a41f03acc20049c7049510.zip
Merge pull request #20039 from zeertzjq/cmod-tab
fix(api)!: correctly deal with number before :tab
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 2315ecd874..1013cf76f9 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -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);