0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0231: :help -? goes to help for -+

Problem:    :help -? goes to help for -+.
Solution:   Add -? to list of special cases. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2018-08-01 18:03:02 +02:00
parent 91335e5a67
commit a5bc38b8c1
3 changed files with 9 additions and 2 deletions

View File

@@ -6583,7 +6583,7 @@ find_help_tags(
static char *(mtable[]) = {"*", "g*", "[*", "]*", ":*", static char *(mtable[]) = {"*", "g*", "[*", "]*", ":*",
"/*", "/\\*", "\"*", "**", "/*", "/\\*", "\"*", "**",
"cpo-*", "/\\(\\)", "/\\%(\\)", "cpo-*", "/\\(\\)", "/\\%(\\)",
"?", ":?", "?<CR>", "g?", "g?g?", "g??", "?", ":?", "-?", "?<CR>", "g?", "g?g?", "g??",
"/\\?", "/\\z(\\)", "\\=", ":s\\=", "/\\?", "/\\z(\\)", "\\=", ":s\\=",
"[count]", "[quotex]", "[count]", "[quotex]",
"[range]", ":[range]", "[range]", ":[range]",
@@ -6593,7 +6593,7 @@ find_help_tags(
static char *(rtable[]) = {"star", "gstar", "[star", "]star", ":star", static char *(rtable[]) = {"star", "gstar", "[star", "]star", ":star",
"/star", "/\\\\star", "quotestar", "starstar", "/star", "/\\\\star", "quotestar", "starstar",
"cpo-star", "/\\\\(\\\\)", "/\\\\%(\\\\)", "cpo-star", "/\\\\(\\\\)", "/\\\\%(\\\\)",
"?", ":?", "?<CR>", "g?", "g?g?", "g??", "?", ":?", "-?", "?<CR>", "g?", "g?g?", "g??",
"/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=", "/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=",
"\\[count]", "\\[quotex]", "\\[count]", "\\[quotex]",
"\\[range]", ":\\[range]", "\\[range]", ":\\[range]",

View File

@@ -26,6 +26,11 @@ func Test_help_tagjump()
call assert_true(getline('.') =~ '\*:?\*') call assert_true(getline('.') =~ '\*:?\*')
helpclose helpclose
help -?
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*-?\*')
helpclose
help FileW*Post help FileW*Post
call assert_equal("help", &filetype) call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*FileWritePost\*') call assert_true(getline('.') =~ '\*FileWritePost\*')

View File

@@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
231,
/**/ /**/
230, 230,
/**/ /**/