diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-04 11:03:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-04 11:03:12 +0100 |
commit | 4778b4d0e147793a4254cbda9c0e270250e970f5 (patch) | |
tree | 3dd5aba4453647d7c66a0bd2d3f25e31807d62cd /src/getchar.c | |
parent | c136a3528b7ebb825c3863d701af44f023381181 (diff) |
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/getchar.c')
-rw-r--r-- | src/getchar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c index 6e469f49b5..b0cc8c2317 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -2155,7 +2155,8 @@ parse_queued_messages(void) // Do not handle messages while redrawing, because it may cause buffers to // change or be wiped while they are being redrawn. - if (updating_screen) + // Also bail out when parsing messages was explicitly disabled. + if (updating_screen || dont_parse_messages) return; // If memory allocation fails during startup we'll exit but curbuf or |