aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_eval_stuff.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-06-04 09:20:59 +0200
committerGitHub <noreply@github.com>2019-06-04 09:20:59 +0200
commit2ae5427b3cfdd20353584299524c650c26f8fd17 (patch)
treef91203398811c754206c8831d03172e47eb2a305 /src/nvim/testdir/test_eval_stuff.vim
parent58f505dc7432cad76269ee447029eb1ad94b5aeb (diff)
parent5f41ca4013d17a81fcfd0a7b0be0422cb9cc25ec (diff)
downloadrneovim-2ae5427b3cfdd20353584299524c650c26f8fd17.tar.gz
rneovim-2ae5427b3cfdd20353584299524c650c26f8fd17.tar.bz2
rneovim-2ae5427b3cfdd20353584299524c650c26f8fd17.zip
Merge #10113 from janlazo/vim-8.0.1518
vim-patch:8.0.1518,8.1.{2,804}
Diffstat (limited to 'src/nvim/testdir/test_eval_stuff.vim')
-rw-r--r--src/nvim/testdir/test_eval_stuff.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_eval_stuff.vim b/src/nvim/testdir/test_eval_stuff.vim
index 19a15590e5..ff8f2e5fc7 100644
--- a/src/nvim/testdir/test_eval_stuff.vim
+++ b/src/nvim/testdir/test_eval_stuff.vim
@@ -78,3 +78,24 @@ func Test_string_concatenation()
let a..=b
call assert_equal('ab', a)
endfunc
+
+func Test_nocatch_restore_silent_emsg()
+ silent! try
+ throw 1
+ catch
+ endtry
+ echoerr 'wrong'
+ let c1 = nr2char(screenchar(&lines, 1))
+ let c2 = nr2char(screenchar(&lines, 2))
+ let c3 = nr2char(screenchar(&lines, 3))
+ let c4 = nr2char(screenchar(&lines, 4))
+ let c5 = nr2char(screenchar(&lines, 5))
+ call assert_equal('wrong', c1 . c2 . c3 . c4 . c5)
+endfunc
+
+func Test_let_errmsg()
+ call assert_fails('let v:errmsg = []', 'E730:')
+ let v:errmsg = ''
+ call assert_fails('let v:errmsg = []', 'E730:')
+ let v:errmsg = ''
+endfunc