To: vim_dev@googlegroups.com Subject: Patch 8.2.3837 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3837 Problem: QNX: crash when compiled with GUI but using terminal. Solution: Check gui.in_use is set. (Hirohito Higashi, closes #9363) Files: src/autocmd.c *** ../vim-8.2.3836/src/autocmd.c 2021-12-17 09:44:29.139056558 +0000 --- src/autocmd.c 2021-12-17 15:08:32.075658740 +0000 *************** *** 1613,1622 **** #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(); #endif } else --- 1613,1627 ---- #endif } #if defined(FEAT_GUI) ! 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 *** ../vim-8.2.3836/src/version.c 2021-12-17 14:46:09.044354085 +0000 --- src/version.c 2021-12-17 15:59:33.680516897 +0000 *************** *** 751,752 **** --- 751,754 ---- { /* Add new patch number below this line */ + /**/ + 3837, /**/ -- Master: Boy, there is nothing more for you to learn Student: I didn't know that! /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///