Mercurial > vim
comparison src/evalwindow.c @ 21703:22583b9d4efd v8.2.1401
patch 8.2.1401: cannot jump to the last used tabpage
Commit: https://github.com/vim/vim/commit/62a232506d06f6d1b3b7271801c907d6294dfe84
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 9 14:04:42 2020 +0200
patch 8.2.1401: cannot jump to the last used tabpage
Problem: Cannot jump to the last used tabpage.
Solution: Add g<Tab> and tabpagnr('#'). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6661,
neovim #11626)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 09 Aug 2020 14:15:04 +0200 |
parents | 27401f09fe9b |
children | 0716b3299872 |
comparison
equal
deleted
inserted
replaced
21702:b63fb341c0da | 21703:22583b9d4efd |
---|---|
614 nr = 0; | 614 nr = 0; |
615 if (arg != NULL) | 615 if (arg != NULL) |
616 { | 616 { |
617 if (STRCMP(arg, "$") == 0) | 617 if (STRCMP(arg, "$") == 0) |
618 nr = tabpage_index(NULL) - 1; | 618 nr = tabpage_index(NULL) - 1; |
619 else if (STRCMP(arg, "#") == 0) | |
620 nr = valid_tabpage(lastused_tabpage) ? | |
621 tabpage_index(lastused_tabpage) : 0; | |
619 else | 622 else |
620 semsg(_(e_invexpr2), arg); | 623 semsg(_(e_invexpr2), arg); |
621 } | 624 } |
622 } | 625 } |
623 else | 626 else |