comparison src/message.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 e82579016863
children 89c324e327c0
comparison
equal deleted inserted replaced
22741:8c4ba2a7a44f 22742:f7f2d73ff85e
657 if (!ignore) 657 if (!ignore)
658 ++did_emsg; 658 ++did_emsg;
659 return TRUE; 659 return TRUE;
660 } 660 }
661 661
662 if (emsg_assert_fails_used && emsg_assert_fails_msg == NULL) 662 if (in_assert_fails && emsg_assert_fails_msg == NULL)
663 { 663 {
664 emsg_assert_fails_msg = vim_strsave(s); 664 emsg_assert_fails_msg = vim_strsave(s);
665 emsg_assert_fails_lnum = SOURCING_LNUM; 665 emsg_assert_fails_lnum = SOURCING_LNUM;
666 vim_free(emsg_assert_fails_context); 666 vim_free(emsg_assert_fails_context);
667 emsg_assert_fails_context = vim_strsave( 667 emsg_assert_fails_context = vim_strsave(