# HG changeset patch # User Christian Brabandt # Date 1533140105 -7200 # Node ID 90bed90d1130ca8071dc7c38ad9be487048e7dd6 # Parent d6e8d6357399df3cf6866c2e4a77335d2be9dd13 patch 8.1.0231: :help -? goes to help for -+ commit https://github.com/vim/vim/commit/a5bc38b8c16be93bac900137a5837585006cc8a4 Author: Bram Moolenaar Date: Wed Aug 1 18:03:02 2018 +0200 patch 8.1.0231: :help -? goes to help for -+ Problem: :help -? goes to help for -+. Solution: Add -? to list of special cases. (Hirohito Higashi) diff --git a/src/ex_cmds.c b/src/ex_cmds.c --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -6583,7 +6583,7 @@ find_help_tags( static char *(mtable[]) = {"*", "g*", "[*", "]*", ":*", "/*", "/\\*", "\"*", "**", "cpo-*", "/\\(\\)", "/\\%(\\)", - "?", ":?", "?", "g?", "g?g?", "g??", + "?", ":?", "-?", "?", "g?", "g?g?", "g??", "/\\?", "/\\z(\\)", "\\=", ":s\\=", "[count]", "[quotex]", "[range]", ":[range]", @@ -6593,7 +6593,7 @@ find_help_tags( static char *(rtable[]) = {"star", "gstar", "[star", "]star", ":star", "/star", "/\\\\star", "quotestar", "starstar", "cpo-star", "/\\\\(\\\\)", "/\\\\%(\\\\)", - "?", ":?", "?", "g?", "g?g?", "g??", + "?", ":?", "-?", "?", "g?", "g?g?", "g??", "/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=", "\\[count]", "\\[quotex]", "\\[range]", ":\\[range]", diff --git a/src/testdir/test_help_tagjump.vim b/src/testdir/test_help_tagjump.vim --- a/src/testdir/test_help_tagjump.vim +++ b/src/testdir/test_help_tagjump.vim @@ -26,6 +26,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\*') diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 231, +/**/ 230, /**/ 229,