0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.4.240

Problem:    ":tjump" shows "\n" as "\\n".
Solution:   Skip over "\" that escapes a backslash. (Gary Johnson)
This commit is contained in:
Bram Moolenaar 2014-04-02 17:19:04 +02:00
parent 3e45159ceb
commit fe5aab63fe
2 changed files with 6 additions and 2 deletions

View File

@ -741,8 +741,10 @@ do_tag(tag, type, count, forceit, verbose)
break; break;
msg_advance(15); msg_advance(15);
/* skip backslash used for escaping command char */ /* skip backslash used for escaping a command char or
if (*p == '\\' && *(p + 1) == *tagp.command) * a backslash */
if (*p == '\\' && (*(p + 1) == *tagp.command
|| *(p + 1) == '\\'))
++p; ++p;
if (*p == TAB) if (*p == TAB)

View File

@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
240,
/**/ /**/
239, 239,
/**/ /**/