Mercurial > vim
changeset 5282:8c42772f0543 v7.4b.017
updated for version 7.4b.017
Problem: ":he \^x" gives a strange error message. (glts)
Solution: Do not translate \^x to \_CTRL-x.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 07 Aug 2013 15:24:41 +0200 |
parents | 65377d89f1ae |
children | 08a7a7143d69 |
files | src/ex_cmds.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -6019,8 +6019,8 @@ find_help_tags(arg, num_matches, matches if (*s < ' ' || (*s == '^' && s[1] && (ASCII_ISALPHA(s[1]) || vim_strchr((char_u *)"?@[\\]^", s[1]) != NULL))) { - if (d > IObuff && d[-1] != '_') - *d++ = '_'; /* prepend a '_' */ + if (d > IObuff && d[-1] != '_' && d[-1] != '\\') + *d++ = '_'; /* prepend a '_' to make x_CTRL-x */ STRCPY(d, "CTRL-"); d += 5; if (*s < ' ')