aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/globals.h
diff options
context:
space:
mode:
authorbutwerenotthereyet <58348703+butwerenotthereyet@users.noreply.github.com>2020-01-02 06:06:11 -0800
committerJustin M. Keyes <justinkz@gmail.com>2020-01-02 06:06:11 -0800
commitcbc8d72fde4b19176028490934ff7a447afe523c (patch)
tree80c962c8c65b356e55b9a55e0f67c1ba2b24b78d /src/nvim/globals.h
parent2c62b2fc56b6b86a930356ccf48ba8fb189a7654 (diff)
downloadrneovim-cbc8d72fde4b19176028490934ff7a447afe523c.tar.gz
rneovim-cbc8d72fde4b19176028490934ff7a447afe523c.tar.bz2
rneovim-cbc8d72fde4b19176028490934ff7a447afe523c.zip
tabpage: track last-used tabpage #11626
In a multi-window scenario, it is possible to return focus to the last accessed window via n_CTRL-W_p. However, in the case of a multi-tab scenario, there was previously no way to return focus to the last accessed *tab*. Here, that ability is added via n_g<tab>. Additionally, the index of the previous tab is exposed via tabpagenr('#'), mirroring the existing functionality of winnr('#').
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r--src/nvim/globals.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index c6ab574a0f..148ab0a02b 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -459,6 +459,7 @@ EXTERN frame_T *topframe; /* top of the window frame tree */
* one in the list, "curtab" is the current one.
*/
EXTERN tabpage_T *first_tabpage;
+EXTERN tabpage_T *lastused_tabpage;
EXTERN tabpage_T *curtab;
EXTERN int redraw_tabline INIT(= FALSE); /* need to redraw tabline */