From 6073f13f557c53928a2a9071495178599c38e798 Mon Sep 17 00:00:00 2001 From: h-east Date: Fri, 24 Dec 2021 11:57:06 +0000 Subject: [PATCH] patch 8.2.3881: QNX: crash when compiled with GUI but using terminal Problem: QNX: crash when compiled with GUI but using terminal. Solution: Check the gui.in_use flag. (Hirohito Higashi, closes #9391) --- src/main.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 268209e8d..6943c2f79 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); diff --git a/src/version.c b/src/version.c index 6b4708d80..9d6c0d9f7 100644 --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3881, /**/ 3880, /**/ -- 2.40.0