Mercurial > vim
comparison src/insexpand.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 | 768f72ca8872 |
children | 6d50182e7e24 |
comparison
equal
deleted
inserted
replaced
22741:8c4ba2a7a44f | 22742:f7f2d73ff85e |
---|---|
296 ctrl_x_mode = CTRL_X_NORMAL; | 296 ctrl_x_mode = CTRL_X_NORMAL; |
297 edit_submode = NULL; | 297 edit_submode = NULL; |
298 msg_attr(dict_opt ? _("'dictionary' option is empty") | 298 msg_attr(dict_opt ? _("'dictionary' option is empty") |
299 : _("'thesaurus' option is empty"), | 299 : _("'thesaurus' option is empty"), |
300 HL_ATTR(HLF_E)); | 300 HL_ATTR(HLF_E)); |
301 if (emsg_silent == 0) | 301 if (emsg_silent == 0 && !in_assert_fails) |
302 { | 302 { |
303 vim_beep(BO_COMPL); | 303 vim_beep(BO_COMPL); |
304 setcursor(); | 304 setcursor(); |
305 out_flush(); | 305 out_flush(); |
306 #ifdef FEAT_EVAL | 306 #ifdef FEAT_EVAL |