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 | d4c26285caf9e15f0d5ecabf077f2befc493fafd (patch) | |
tree | ec3c1c17a2df7a5d71f67819b1dc5d6b0fd7481c | |
parent | bd5a78654a96e7f50bffa3b01bd438fdb37e6ac6 (diff) | |
download | vim-d4c26285caf9e15f0d5ecabf077f2befc493fafd.tar.gz |
Problem: CTRL-] in a help file doesn't always work. (Tony Mechelynck)
Solution: Don't escape special characters. (Carlo Teubner)
-rw-r--r-- | src/normal.c | 9 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c index b76e40d1..1754e8aa 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*?["; diff --git a/src/version.c b/src/version.c index 9959c79d..bedc601c 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 26, +/**/ 25, /**/ 24, |