diff src/globals.h @ 22800:8e7cbf73c3a0 v8.2.1948

patch 8.2.1948: GUI: crash when handling message while closing a window Commit: https://github.com/vim/vim/commit/4778b4d0e147793a4254cbda9c0e270250e970f5 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 4 11:03:12 2020 +0100 patch 8.2.1948: GUI: crash when handling message while closing a window Problem: GUI: crash when handling message while closing a window. (Srinath Avadhanula) Solution: Don't handle message while closing a window. (closes #7250)
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Nov 2020 11:15:04 +0100
parents 84fca115b1bb
children 707b90980de5
line wrap: on
line diff
--- a/src/globals.h
+++ b/src/globals.h
@@ -581,6 +581,12 @@ EXTERN int	diff_need_scrollbind INIT(= F
 // ('lines' and 'rows') must not be changed.
 EXTERN int	updating_screen INIT(= FALSE);
 
+#ifdef MESSAGE_QUEUE
+// While closing windows or buffers messages should not be handled to avoid
+// using invalid windows or buffers.
+EXTERN int	dont_parse_messages INIT(= FALSE);
+#endif
+
 #ifdef FEAT_MENU
 // The root of the menu hierarchy.
 EXTERN vimmenu_T	*root_menu INIT(= NULL);