mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.1.0231: :help -? goes to help for -+
Problem: :help -? goes to help for -+.
Solution: Add -? to list of special cases. (Hirohito Higashi)
a5bc38b8c1
This commit is contained in:
parent
5c90bbae2a
commit
24b16ed35e
@ -4688,7 +4688,7 @@ int find_help_tags(char_u *arg, int *num_matches, char_u ***matches, int keep_la
|
||||
static char *(mtable[]) = {"*", "g*", "[*", "]*",
|
||||
"/*", "/\\*", "\"*", "**",
|
||||
"/\\(\\)", "/\\%(\\)",
|
||||
"?", ":?", "?<CR>", "g?", "g?g?", "g??",
|
||||
"?", ":?", "-?", "?<CR>", "g?", "g?g?", "g??",
|
||||
"/\\?", "/\\z(\\)", "\\=", ":s\\=",
|
||||
"[count]", "[quotex]",
|
||||
"[range]", ":[range]",
|
||||
@ -4698,7 +4698,7 @@ int find_help_tags(char_u *arg, int *num_matches, char_u ***matches, int keep_la
|
||||
static char *(rtable[]) = {"star", "gstar", "[star", "]star",
|
||||
"/star", "/\\\\star", "quotestar", "starstar",
|
||||
"/\\\\(\\\\)", "/\\\\%(\\\\)",
|
||||
"?", ":?", "?<CR>", "g?", "g?g?", "g??",
|
||||
"?", ":?", "-?", "?<CR>", "g?", "g?g?", "g??",
|
||||
"/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=",
|
||||
"\\[count]", "\\[quotex]",
|
||||
"\\[range]", ":\\[range]",
|
||||
|
@ -38,6 +38,11 @@ func Test_help_tagjump()
|
||||
call assert_true(getline('.') =~ '\*:?\*')
|
||||
helpclose
|
||||
|
||||
help -?
|
||||
call assert_equal("help", &filetype)
|
||||
call assert_true(getline('.') =~ '\*-?\*')
|
||||
helpclose
|
||||
|
||||
help FileW*Post
|
||||
call assert_equal("help", &filetype)
|
||||
call assert_true(getline('.') =~ '\*FileWritePost\*')
|
||||
|
Loading…
Reference in New Issue
Block a user