# HG changeset patch # User Bram Moolenaar # Date 1639757703 -3600 # Node ID d1a60043826c8d43b9b67a4905598ed8fec01fbd # Parent d549244ead367382e4cf7076a6b6ada4fd97f775 patch 8.2.3837: QNX: crash when compiled with GUI but using terminal Commit: https://github.com/vim/vim/commit/d2ff705af32862b4da49d213613233f93343874c Author: Bram Moolenaar Date: Fri Dec 17 16:00:04 2021 +0000 patch 8.2.3837: QNX: crash when compiled with GUI but using terminal Problem: QNX: crash when compiled with GUI but using terminal. Solution: Check gui.in_use is set. (Hirohito Higashi, closes https://github.com/vim/vim/issues/9363) diff --git a/src/autocmd.c b/src/autocmd.c --- a/src/autocmd.c +++ b/src/autocmd.c @@ -1613,10 +1613,15 @@ win_found: #endif } #if defined(FEAT_GUI) - // Hide the scrollbars from the aucmd_win and update. - gui_mch_enable_scrollbar(&aucmd_win->w_scrollbars[SBAR_LEFT], FALSE); - gui_mch_enable_scrollbar(&aucmd_win->w_scrollbars[SBAR_RIGHT], FALSE); - gui_may_update_scrollbars(); + if (gui.in_use) + { + // Hide the scrollbars from the aucmd_win and update. + gui_mch_enable_scrollbar( + &aucmd_win->w_scrollbars[SBAR_LEFT], FALSE); + gui_mch_enable_scrollbar( + &aucmd_win->w_scrollbars[SBAR_RIGHT], FALSE); + gui_may_update_scrollbars(); + } #endif } else 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 */ /**/ + 3837, +/**/ 3836, /**/ 3835,