aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_help.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/testdir/test_help.vim')
-rw-r--r--src/nvim/testdir/test_help.vim10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_help.vim b/src/nvim/testdir/test_help.vim
index 8e59efd22d..e91dea1040 100644
--- a/src/nvim/testdir/test_help.vim
+++ b/src/nvim/testdir/test_help.vim
@@ -1,4 +1,3 @@
-
" Tests for :help
func Test_help_restore_snapshot()
@@ -101,4 +100,13 @@ func Test_helptag_cmd()
call delete('Xdir', 'rf')
endfunc
+func Test_help_long_argument()
+ try
+ exe 'help \%' .. repeat('0', 1021)
+ catch
+ call assert_match("E149:", v:exception)
+ endtry
+endfunc
+
+
" vim: shiftwidth=2 sts=2 expandtab