0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -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;
msg_advance(15);
/* skip backslash used for escaping command char */
if (*p == '\\' && *(p + 1) == *tagp.command)
/* skip backslash used for escaping a command char or
* a backslash */
if (*p == '\\' && (*(p + 1) == *tagp.command
|| *(p + 1) == '\\'))
++p;
if (*p == TAB)

View File

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