0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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)
This commit is contained in:
h-east
2021-12-24 11:57:06 +00:00
committed by Bram Moolenaar
parent 70a120b72b
commit 6073f13f55
2 changed files with 3 additions and 1 deletions

View 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);