1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2020-10-28 20:20:00 +01:00
parent 3e2534ed1a
commit 28ee892ac4
19 changed files with 44 additions and 36 deletions

View File

@@ -1063,7 +1063,7 @@ vim_beep(
called_vim_beep = TRUE;
#endif
if (emsg_silent == 0)
if (emsg_silent == 0 && !in_assert_fails)
{
if (!((bo_flags & val) || (bo_flags & BO_ALL)))
{
@@ -2568,6 +2568,7 @@ goto_im(void)
* But don't allow a space in the path, so that this works:
* "/usr/bin/csh --rcfile ~/.cshrc"
* But don't do that for Windows, it's common to have a space in the path.
* Returns NULL when out of memory.
*/
char_u *
get_isolated_shell_name(void)