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)
diff --git a/src/main.c b/src/main.c
index 268209e..6943c2f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -835,7 +835,7 @@
#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);