aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-27 19:23:40 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-04 21:16:34 -0400
commit9d7dc49db133cabebc3b6017830020163526c533 (patch)
treede24b3d4149e276b9db907c50a9cd287bfff743b /src/nvim/testdir
parent106b308ed4c99b1f2397ebd106974e07f934a9f8 (diff)
downloadrneovim-9d7dc49db133cabebc3b6017830020163526c533.tar.gz
rneovim-9d7dc49db133cabebc3b6017830020163526c533.tar.bz2
rneovim-9d7dc49db133cabebc3b6017830020163526c533.zip
vim-patch:8.1.0235: more help tags that jump to the wrong location
Problem: More help tags that jump to the wrong location. Solution: Add more exceptions and a table for "expr-" tags. (Hirohito Higashi) https://github.com/vim/vim/commit/3bf5e6a4c8eb84b44437d6148428565d44783eed
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_help_tagjump.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_help_tagjump.vim b/src/nvim/testdir/test_help_tagjump.vim
index 09724066b0..c873487b92 100644
--- a/src/nvim/testdir/test_help_tagjump.vim
+++ b/src/nvim/testdir/test_help_tagjump.vim
@@ -38,11 +38,34 @@ func Test_help_tagjump()
call assert_true(getline('.') =~ '\*:?\*')
helpclose
+ help q?
+ call assert_equal("help", &filetype)
+ call assert_true(getline('.') =~ '\*q?\*')
+ call assert_true(expand('<cword>') == 'q?')
+ helpclose
+
help -?
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*-?\*')
helpclose
+ help v_g?
+ call assert_equal("help", &filetype)
+ call assert_true(getline('.') =~ '\*v_g?\*')
+ helpclose
+
+ help expr-!=?
+ call assert_equal("help", &filetype)
+ call assert_true(getline('.') =~ '\*expr-!=?\*')
+ call assert_true(expand('<cword>') == 'expr-!=?')
+ helpclose
+
+ help expr-isnot?
+ call assert_equal("help", &filetype)
+ call assert_true(getline('.') =~ '\*expr-isnot?\*')
+ call assert_true(expand('<cword>') == 'expr-isnot?')
+ helpclose
+
help FileW*Post
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*FileWritePost\*')