Mercurial > vim
comparison src/term.c @ 22742:f7f2d73ff85e v8.2.1919
patch 8.2.1919: assert_fails() setting emsg_silent changes normal execution
Commit: https://github.com/vim/vim/commit/28ee892ac4197421b3317f195512ca64cc56a5b4
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 28 20:20:00 2020 +0100
patch 8.2.1919: assert_fails() setting emsg_silent changes normal execution
Problem: Assert_fails() setting emsg_silent changes normal execution.
Solution: Use a separate flag in_assert_fails.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 28 Oct 2020 20:30:04 +0100 |
parents | 6c7e4db139a3 |
children | d03221aa54f3 |
comparison
equal
deleted
inserted
replaced
22741:8c4ba2a7a44f | 22742:f7f2d73ff85e |
---|---|
1798 report_default_term(char_u *term) | 1798 report_default_term(char_u *term) |
1799 { | 1799 { |
1800 mch_errmsg(_("defaulting to '")); | 1800 mch_errmsg(_("defaulting to '")); |
1801 mch_errmsg((char *)term); | 1801 mch_errmsg((char *)term); |
1802 mch_errmsg("'\r\n"); | 1802 mch_errmsg("'\r\n"); |
1803 if (emsg_silent == 0) | 1803 if (emsg_silent == 0 && !in_assert_fails) |
1804 { | 1804 { |
1805 screen_start(); // don't know where cursor is now | 1805 screen_start(); // don't know where cursor is now |
1806 out_flush(); | 1806 out_flush(); |
1807 if (!is_not_a_term()) | 1807 if (!is_not_a_term()) |
1808 ui_delay(2007L, TRUE); | 1808 ui_delay(2007L, TRUE); |