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*", "[*", "]*",
|
static char *(mtable[]) = {"*", "g*", "[*", "]*",
|
||||||
"/*", "/\\*", "\"*", "**",
|
"/*", "/\\*", "\"*", "**",
|
||||||
"/\\(\\)", "/\\%(\\)",
|
"/\\(\\)", "/\\%(\\)",
|
||||||
"?", ":?", "?<CR>", "g?", "g?g?", "g??",
|
"?", ":?", "-?", "?<CR>", "g?", "g?g?", "g??",
|
||||||
"/\\?", "/\\z(\\)", "\\=", ":s\\=",
|
"/\\?", "/\\z(\\)", "\\=", ":s\\=",
|
||||||
"[count]", "[quotex]",
|
"[count]", "[quotex]",
|
||||||
"[range]", ":[range]",
|
"[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",
|
static char *(rtable[]) = {"star", "gstar", "[star", "]star",
|
||||||
"/star", "/\\\\star", "quotestar", "starstar",
|
"/star", "/\\\\star", "quotestar", "starstar",
|
||||||
"/\\\\(\\\\)", "/\\\\%(\\\\)",
|
"/\\\\(\\\\)", "/\\\\%(\\\\)",
|
||||||
"?", ":?", "?<CR>", "g?", "g?g?", "g??",
|
"?", ":?", "-?", "?<CR>", "g?", "g?g?", "g??",
|
||||||
"/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=",
|
"/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=",
|
||||||
"\\[count]", "\\[quotex]",
|
"\\[count]", "\\[quotex]",
|
||||||
"\\[range]", ":\\[range]",
|
"\\[range]", ":\\[range]",
|
||||||
|
@ -38,6 +38,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\*')
|
||||||
|
Loading…
Reference in New Issue
Block a user