Mercurial > vim
comparison src/testdir/test_mapping.vim @ 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 | 08940efa6b4e |
children | 6d50182e7e24 |
comparison
equal
deleted
inserted
replaced
22741:8c4ba2a7a44f | 22742:f7f2d73ff85e |
---|---|
679 call setline(1, '') | 679 call setline(1, '') |
680 | 680 |
681 " invalid <expr> abbreviation | 681 " invalid <expr> abbreviation |
682 abbr <expr> hte GetAbbr() | 682 abbr <expr> hte GetAbbr() |
683 call assert_fails('normal ihte ', 'E117:') | 683 call assert_fails('normal ihte ', 'E117:') |
684 call assert_equal(' ', getline(1)) | 684 call assert_equal('', getline(1)) |
685 unabbr <expr> hte | 685 unabbr <expr> hte |
686 | 686 |
687 close! | 687 close! |
688 endfunc | 688 endfunc |
689 | 689 |