tabpage: "tabnext #" switches to previous tab #11734

This commit is contained in:
butwerenotthereyet
2020-01-20 15:14:51 -08:00
committed by Justin M. Keyes
parent ef379d4eaa
commit f245c0218a
2 changed files with 38 additions and 0 deletions

View File

@@ -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.