summaryrefslogtreecommitdiff
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-04 11:03:12 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-04 11:03:12 +0100
commit4778b4d0e147793a4254cbda9c0e270250e970f5 (patch)
tree3dd5aba4453647d7c66a0bd2d3f25e31807d62cd /src/globals.h
parentc136a3528b7ebb825c3863d701af44f023381181 (diff)
downloadvim-git-4778b4d0e147793a4254cbda9c0e270250e970f5.tar.gz
patch 8.2.1948: GUI: crash when handling message while closing a windowv8.2.1948
Problem: GUI: crash when handling message while closing a window. (Srinath Avadhanula) Solution: Don't handle message while closing a window. (closes #7250)
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index 379a532fa..dd7fa4a53 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -581,6 +581,12 @@ EXTERN int diff_need_scrollbind INIT(= FALSE);
// ('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);