]> granicus.if.org Git - vim/commitdiff
patch 8.1.0231: :help -? goes to help for -+ v8.1.0231
authorBram Moolenaar <Bram@vim.org>
Wed, 1 Aug 2018 16:03:02 +0000 (18:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 1 Aug 2018 16:03:02 +0000 (18:03 +0200)
Problem:    :help -? goes to help for -+.
Solution:   Add -? to list of special cases. (Hirohito Higashi)

src/ex_cmds.c
src/testdir/test_help_tagjump.vim
src/version.c

index a30178b641572a68feeb4d107fd8e3949e09fa10..37331519ab86114082d3d10e260c003955e861ac 100644 (file)
@@ -6583,7 +6583,7 @@ find_help_tags(
     static char *(mtable[]) = {"*", "g*", "[*", "]*", ":*",
                               "/*", "/\\*", "\"*", "**",
                               "cpo-*", "/\\(\\)", "/\\%(\\)",
-                              "?", ":?", "?<CR>", "g?", "g?g?", "g??",
+                              "?", ":?", "-?", "?<CR>", "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", "/\\\\(\\\\)", "/\\\\%(\\\\)",
-                              "?", ":?", "?<CR>", "g?", "g?g?", "g??",
+                              "?", ":?", "-?", "?<CR>", "g?", "g?g?", "g??",
                               "/\\\\?", "/\\\\z(\\\\)", "\\\\=", ":s\\\\=",
                               "\\[count]", "\\[quotex]",
                               "\\[range]", ":\\[range]",
index 51b006c5791ba799e86a4815d7c24db5950993f1..00a96b22710ce30685be7120038cf30cd551bcd2 100644 (file)
@@ -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\*')
index e0af0206f02ade7ce3c2b696be8e3afbe0c89b6a..b826410db0203fe10becb8dc8b025d4949950722 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    231,
 /**/
     230,
 /**/