mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user