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:
@@ -681,7 +681,7 @@ func Test_expr_abbr()
|
||||
" invalid <expr> abbreviation
|
||||
abbr <expr> hte GetAbbr()
|
||||
call assert_fails('normal ihte ', 'E117:')
|
||||
call assert_equal(' ', getline(1))
|
||||
call assert_equal('', getline(1))
|
||||
unabbr <expr> hte
|
||||
|
||||
close!
|
||||
|
Reference in New Issue
Block a user