Mercurial > vim
changeset 14435:90bed90d1130 v8.1.0231
patch 8.1.0231: :help -? goes to help for -+
commit https://github.com/vim/vim/commit/a5bc38b8c16be93bac900137a5837585006cc8a4
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 01 Aug 2018 18:15:05 +0200 |
parents | d6e8d6357399 |
children | c5b4768f5224 |
files | src/ex_cmds.c src/testdir/test_help_tagjump.vim src/version.c |
diffstat | 3 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -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]",
--- 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\*')