summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorh-east <h.east.727@gmail.com>2021-12-24 11:57:06 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-24 11:57:06 +0000
commit6073f13f557c53928a2a9071495178599c38e798 (patch)
tree692b3919b3a15af18eadf6000e01c609c908772e /src/main.c
parent70a120b72b2b48800f881725c58241cd170893f8 (diff)
patch 8.2.3881: QNX: crash when compiled with GUI but using terminalv8.2.3881
Problem: QNX: crash when compiled with GUI but using terminal. Solution: Check the gui.in_use flag. (Hirohito Higashi, closes #9391)
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);