diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-09-13 12:46:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 12:46:32 -0400 |
commit | 20f7b94284a1b7d903bfa81cb2120b55058fbe7f (patch) | |
tree | 815ad7d6a6e980e9104a1d1b6af9deae8291fe28 /src/nvim/ex_docmd.c | |
parent | c7ef802206601bccc49a67bed797b7e3ed25e0c1 (diff) | |
parent | 8105fc89c40cd702b44f53a979f17161318c1294 (diff) | |
download | rneovim-20f7b94284a1b7d903bfa81cb2120b55058fbe7f.tar.gz rneovim-20f7b94284a1b7d903bfa81cb2120b55058fbe7f.tar.bz2 rneovim-20f7b94284a1b7d903bfa81cb2120b55058fbe7f.zip |
Merge pull request #12905 from janlazo/vim-8.1.0555
vim-patch:8.1.{499,555,556,584,640,1148,1704},8.2.0902
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index dfebd13868..60b017be28 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -2228,17 +2228,19 @@ int parse_command_modifiers(exarg_T *eap, char_u **errormsg, bool skip_only) continue; case 't': if (checkforcmd(&p, "tab", 3)) { - long tabnr = get_address( - eap, &eap->cmd, ADDR_TABS, eap->skip, skip_only, false, 1); + if (!skip_only) { + long tabnr = get_address( + eap, &eap->cmd, ADDR_TABS, eap->skip, skip_only, false, 1); - if (tabnr == MAXLNUM) { - cmdmod.tab = tabpage_index(curtab) + 1; - } else { - if (tabnr < 0 || tabnr > LAST_TAB_NR) { - *errormsg = (char_u *)_(e_invrange); - return false; + if (tabnr == MAXLNUM) { + cmdmod.tab = tabpage_index(curtab) + 1; + } else { + if (tabnr < 0 || tabnr > LAST_TAB_NR) { + *errormsg = (char_u *)_(e_invrange); + return false; + } + cmdmod.tab = tabnr + 1; } - cmdmod.tab = tabnr + 1; } eap->cmd = p; continue; |