1
0
forked from aniani/vim

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 #9363)
This commit is contained in:
Bram Moolenaar 2021-12-17 16:00:04 +00:00
parent 02929a372e
commit d2ff705af3
2 changed files with 11 additions and 4 deletions

View File

@ -1613,10 +1613,15 @@ win_found:
#endif #endif
} }
#if defined(FEAT_GUI) #if defined(FEAT_GUI)
// Hide the scrollbars from the aucmd_win and update. if (gui.in_use)
gui_mch_enable_scrollbar(&aucmd_win->w_scrollbars[SBAR_LEFT], FALSE); {
gui_mch_enable_scrollbar(&aucmd_win->w_scrollbars[SBAR_RIGHT], FALSE); // Hide the scrollbars from the aucmd_win and update.
gui_may_update_scrollbars(); 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 #endif
} }
else else

View File

@ -749,6 +749,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
3837,
/**/ /**/
3836, 3836,
/**/ /**/