summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 268209e8da..6943c2f794 100644
--- a/src/main.c
+++ b/src/main.c
@@ -835,7 +835,7 @@ vim_main2(void)
#if defined(FEAT_GUI)
// When tab pages were created, may need to update the tab pages line and
// scrollbars. This is skipped while creating them.
- if (first_tabpage->tp_next != NULL)
+ if (gui.in_use && first_tabpage->tp_next != NULL)
{
out_flush();
gui_init_which_components(NULL);