summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_vim9_cmd.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-23 21:46:32 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-23 21:46:32 +0200
commitb3ea36c5bcb88b6a05a66347eedd461e9385103f (patch)
treeee2ade78ab07ba893a19a4617ee5a4bd61cba9f0 /src/testdir/test_vim9_cmd.vim
parentc2af0afff5c44969ad7611ec2d47d0f52087fa7f (diff)
patch 8.2.1520: Vim9: CTRL-] used in :def function does not workv8.2.1520
Problem: Vim9: CTRL-] used in :def function does not work. Solution: Omit count or prepend colon. (closes #6769)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r--src/testdir/test_vim9_cmd.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index 9f4231a9a3..9372d90952 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -295,5 +295,25 @@ def Test_map_command()
CheckScriptSuccess(['vim9script'] + lines)
enddef
+def Test_normal_command()
+ new
+ setline(1, 'doesnotexist')
+ let caught = 0
+ try
+ exe "norm! \<C-]>"
+ catch /E433/
+ caught = 2
+ endtry
+ assert_equal(2, caught)
+
+ try
+ exe "norm! 3\<C-]>"
+ catch /E433/
+ caught = 3
+ endtry
+ assert_equal(3, caught)
+ bwipe!
+enddef
+
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker