Skip to content

Commit a5bc38b

Browse files
committed
patch 8.1.0231: :help -? goes to help for -+
Problem: :help -? goes to help for -+. Solution: Add -? to list of special cases. (Hirohito Higashi)
1 parent 91335e5 commit a5bc38b

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/ex_cmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6583,7 +6583,7 @@ find_help_tags(
65836583
static char *(mtable[]) = {"*", "g*", "[*", "]*", ":*",
65846584
"/*", "/\\*", "\"*", "**",
65856585
"cpo-*", "/\\(\\)", "/\\%(\\)",
6586-
"?", ":?", "?<CR>", "g?", "g?g?", "g??",
6586+
"?", ":?", "-?", "?<CR>", "g?", "g?g?", "g??",
65876587
"/\\?", "/\\z(\\)", "\\=", ":s\\=",
65886588
"[count]", "[quotex]",
65896589
"[range]", ":[range]",
@@ -6593,7 +6593,7 @@ find_help_tags(
65936593
static char *(rtable[]) = {"star", "gstar", "[star", "]star", ":star",
65946594
"/star", "/\\\\star", "quotestar", "starstar",
65956595
"cpo-star", "/\\\\(\\\\)", "/\\\\%(\\\\)",
6596-
"?", ":?", "?<CR>", "g?", "g?g?", "g??",
6596+
"?", ":?", "-?", "?<CR>", "g?", "g?g?", "g??",
65976597
"/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=",
65986598
"\\[count]", "\\[quotex]",
65996599
"\\[range]", ":\\[range]",

src/testdir/test_help_tagjump.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ func Test_help_tagjump()
2626
call assert_true(getline('.') =~ '\*:?\*')
2727
helpclose
2828

29+
help -?
30+
call assert_equal("help", &filetype)
31+
call assert_true(getline('.') =~ '\*-?\*')
32+
helpclose
33+
2934
help FileW*Post
3035
call assert_equal("help", &filetype)
3136
call assert_true(getline('.') =~ '\*FileWritePost\*')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,8 @@ static char *(features[]) =
794794

795795
static int included_patches[] =
796796
{ /* Add new patch number below this line */
797+
/**/
798+
231,
797799
/**/
798800
230,
799801
/**/

0 commit comments

Comments
 (0)