Mercurial > vim
diff src/ex_cmds.c @ 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 | 7d1f89b27103 |
children | 15c1b8a20da6 |
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 < ' ')