summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 0c0fb30d5..fa0cc904b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3323,7 +3323,7 @@ goto_tabpage(n)
#ifdef FEAT_GUI_TABLINE
if (gui_use_tabline())
- gui_mch_set_curtab(tabpage_index(tp));
+ gui_mch_set_curtab(tabpage_index(curtab));
#endif
}