Mercurial > vim
comparison src/screen.c @ 14673:f1b7d308de2f v8.1.0349
patch 8.1.0349: crash when wiping buffer in a callback
commit https://github.com/vim/vim/commit/ed5a9d661248a2160368f1b0ab3a1bf74831db04
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 6 13:14:43 2018 +0200
patch 8.1.0349: crash when wiping buffer in a callback
Problem: Crash when wiping buffer in a callback.
Solution: Do not handle messages when only peeking for a character.
(closes #2107) Add "redraw_flag" to test_override().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 06 Sep 2018 13:15:05 +0200 |
parents | 04c168a6d998 |
children | a9665096074b |
comparison
equal
deleted
inserted
replaced
14672:a4786c02f58f | 14673:f1b7d308de2f |
---|---|
10817 #ifdef FEAT_EVAL | 10817 #ifdef FEAT_EVAL |
10818 if (disable_redraw_for_testing) | 10818 if (disable_redraw_for_testing) |
10819 return 0; | 10819 return 0; |
10820 else | 10820 else |
10821 #endif | 10821 #endif |
10822 return (!RedrawingDisabled | 10822 return ((!RedrawingDisabled |
10823 && !(p_lz && char_avail() && !KeyTyped && !do_redraw)); | 10823 #ifdef FEAT_EVAL |
10824 || ignore_redraw_flag_for_testing | |
10825 #endif | |
10826 ) && !(p_lz && char_avail() && !KeyTyped && !do_redraw)); | |
10824 } | 10827 } |
10825 | 10828 |
10826 /* | 10829 /* |
10827 * Return TRUE if printing messages should currently be done. | 10830 * Return TRUE if printing messages should currently be done. |
10828 */ | 10831 */ |