]> granicus.if.org Git - vim/commitdiff
patch 8.2.3881: QNX: crash when compiled with GUI but using terminal v8.2.3881
authorh-east <h.east.727@gmail.com>
Fri, 24 Dec 2021 11:57:06 +0000 (11:57 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 24 Dec 2021 11:57:06 +0000 (11:57 +0000)
Problem:    QNX: crash when compiled with GUI but using terminal.
Solution:   Check the gui.in_use flag. (Hirohito Higashi, closes #9391)

src/main.c
src/version.c

index 268209e8da82d88345e6218c801d81d509ffe61f..6943c2f7943b3968a4dfa05c18fab3682a72d725 100644 (file)
@@ -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);
index 6b4708d8072cdd6078e64a3412fa7dbe9442d32a..9d6c0d9f7fbebded83345204368baae6062cd4a6 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3881,
 /**/
     3880,
 /**/