Mercurial > vim
changeset 26704:57f585da8c45 v8.2.3881
patch 8.2.3881: QNX: crash when compiled with GUI but using terminal
Commit: https://github.com/vim/vim/commit/6073f13f557c53928a2a9071495178599c38e798
Author: h-east <h.east.727@gmail.com>
Date: Fri Dec 24 11:57:06 2021 +0000
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 https://github.com/vim/vim/issues/9391)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 Dec 2021 13:00:04 +0100 |
parents | acd8c2287232 |
children | 8cf97ce864e8 |
files | src/main.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -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);