mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
tabpage: "tabnext #" switches to previous tab #11734
This commit is contained in:

committed by
Justin M. Keyes

parent
ef379d4eaa
commit
f245c0218a
@@ -4651,6 +4651,8 @@ static int get_tabpage_arg(exarg_T *eap)
|
||||
if (relative == 0) {
|
||||
if (STRCMP(p, "$") == 0) {
|
||||
tab_number = LAST_TAB_NR;
|
||||
} else if (STRCMP(p, "#") == 0) {
|
||||
tab_number = tabpage_index(lastused_tabpage);
|
||||
} else if (p == p_save || *p_save == '-' || *p != NUL
|
||||
|| tab_number > LAST_TAB_NR) {
|
||||
// No numbers as argument.
|
||||
|
Reference in New Issue
Block a user