diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-28 20:20:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-28 20:20:00 +0100 |
commit | 28ee892ac4197421b3317f195512ca64cc56a5b4 (patch) | |
tree | 0a9eb799ec0e55a32600cc604cea653d9b91f322 /src/buffer.c | |
parent | 3e2534ed1a6557445747e6c1439ad26ec8eabfc4 (diff) |
patch 8.2.1919: assert_fails() setting emsg_silent changes normal executionv8.2.1919
Problem: Assert_fails() setting emsg_silent changes normal execution.
Solution: Use a separate flag in_assert_fails.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 5cbaaac9cc..c804348e19 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2154,7 +2154,7 @@ buflist_new( if (top_file_num < 0) // wrap around (may cause duplicates) { emsg(_("W14: Warning: List of file names overflow")); - if (emsg_silent == 0) + if (emsg_silent == 0 && !in_assert_fails) { out_flush(); ui_delay(3001L, TRUE); // make sure it is noticed |