# HG changeset patch # User Bram Moolenaar # Date 1640347204 -3600 # Node ID 57f585da8c456942e78d0a6de0cc089e08d3c968 # Parent acd8c228723229e410e08dc0511bc999a7101db2 patch 8.2.3881: QNX: crash when compiled with GUI but using terminal Commit: https://github.com/vim/vim/commit/6073f13f557c53928a2a9071495178599c38e798 Author: h-east Date: Fri Dec 24 11:57:06 2021 +0000 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 https://github.com/vim/vim/issues/9391) diff --git a/src/main.c b/src/main.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3881, +/**/ 3880, /**/ 3879,