aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbutwerenotthereyet <58348703+butwerenotthereyet@users.noreply.github.com>2020-01-20 15:14:51 -0800
committerJustin M. Keyes <justinkz@gmail.com>2020-01-20 15:14:51 -0800
commitf245c0218adc9ff3452660dff97e62cea8e9a411 (patch)
tree8b40c8e533bd77ad77178f0c912459a60270c60a /src
parentef379d4eaa492b7d2016571f3a06717967db2740 (diff)
downloadrneovim-f245c0218adc9ff3452660dff97e62cea8e9a411.tar.gz
rneovim-f245c0218adc9ff3452660dff97e62cea8e9a411.tar.bz2
rneovim-f245c0218adc9ff3452660dff97e62cea8e9a411.zip
tabpage: "tabnext #" switches to previous tab #11734
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_docmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 6bda62594e..02bee838d5 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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.