mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user