From 8e15ffcde757ffc6cfe8b5e384948b3278e9af33 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 15 Mar 2016 16:35:39 +0100 Subject: [PATCH] patch 7.4.1571 Problem: No test for ":help". Solution: Add a test for what 7.4.1568 fixed. (Higashi Higashi) --- src/testdir/test_alot.vim | 1 + src/testdir/test_help_tagjump.vim | 18 ++++++++++++++++++ src/version.c | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 src/testdir/test_help_tagjump.vim diff --git a/src/testdir/test_alot.vim b/src/testdir/test_alot.vim index 55502bae6..f4a145031 100644 --- a/src/testdir/test_alot.vim +++ b/src/testdir/test_alot.vim @@ -9,6 +9,7 @@ source test_expand.vim source test_feedkeys.vim source test_file_perm.vim source test_glob2regpat.vim +source test_help_tagjump.vim source test_join.vim source test_lispwords.vim source test_menu.vim diff --git a/src/testdir/test_help_tagjump.vim b/src/testdir/test_help_tagjump.vim new file mode 100644 index 000000000..d1e9ad422 --- /dev/null +++ b/src/testdir/test_help_tagjump.vim @@ -0,0 +1,18 @@ +" Tests for :help! {subject} + +func Test_help_tagjump() + help + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*help.txt\*') + helpclose + + exec "help! ('textwidth'" + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ "\\*'textwidth'\\*") + helpclose + + exec "help! ('buflisted')," + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ "\\*'buflisted'\\*") + helpclose +endfunc diff --git a/src/version.c b/src/version.c index f6b1f3baa..944ffea31 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1571, /**/ 1570, /**/ -- 2.50.1