diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-10-13 18:06:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-10-13 18:06:47 +0200 |
commit | 77a0aa457d66d6dd06435bdd2dd9d53e704e1373 (patch) | |
tree | 64315086aadec4c7eaed668edd48a1f910ce1b5c /src/normal.c | |
parent | 78f74a91bfd29ecd3ff2bb16334535a232300a8c (diff) | |
download | vim-77a0aa457d66d6dd06435bdd2dd9d53e704e1373.zip |
updated for version 7.3.026
Problem: CTRL-] in a help file doesn't always work. (Tony Mechelynck)
Solution: Don't escape special characters. (Carlo Teubner)
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c index b76e40d1d..1754e8aa0 100644 --- a/src/normal.c +++ b/src/normal.c @@ -5666,8 +5666,13 @@ nv_ident(cap) else if (cmdchar == '#') aux_ptr = (char_u *)(p_magic ? "/?.*~[^$\\" : "/?^$\\"); else if (tag_cmd) - /* Don't escape spaces and Tabs in a tag with a backslash */ - aux_ptr = (char_u *)"\\|\"\n["; + { + if (curbuf->b_help) + /* ":help" handles unescaped argument */ + aux_ptr = (char_u *)""; + else + aux_ptr = (char_u *)"\\|\"\n["; + } else aux_ptr = (char_u *)"\\|\"\n*?["; |