Mercurial > vim
comparison src/getchar.c @ 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 | 73be82f278c0 |
children | 6d50182e7e24 |
comparison
equal
deleted
inserted
replaced
22799:6df1709467f8 | 22800:8e7cbf73c3a0 |
---|---|
2153 static int entered = 0; | 2153 static int entered = 0; |
2154 int was_safe = get_was_safe_state(); | 2154 int was_safe = get_was_safe_state(); |
2155 | 2155 |
2156 // Do not handle messages while redrawing, because it may cause buffers to | 2156 // Do not handle messages while redrawing, because it may cause buffers to |
2157 // change or be wiped while they are being redrawn. | 2157 // change or be wiped while they are being redrawn. |
2158 if (updating_screen) | 2158 // Also bail out when parsing messages was explicitly disabled. |
2159 if (updating_screen || dont_parse_messages) | |
2159 return; | 2160 return; |
2160 | 2161 |
2161 // If memory allocation fails during startup we'll exit but curbuf or | 2162 // If memory allocation fails during startup we'll exit but curbuf or |
2162 // curwin could be NULL. | 2163 // curwin could be NULL. |
2163 if (curbuf == NULL || curwin == NULL) | 2164 if (curbuf == NULL || curwin == NULL) |