vim-patch:7.4.240

Problem:  ":tjump" shows "\n" as "\\n".
Solution: Skip over "\" that escapes a backslash. (Gary Johnson)

https://code.google.com/p/vim/source/detail?r=8d1ba0a23588932d22ad37cbd87ae3bbd4bfeff8
This commit is contained in:
Marco Hinz 2014-04-14 15:47:59 +02:00 committed by Thiago de Arruda
parent fca5a5e744
commit 40970917dc
2 changed files with 5 additions and 3 deletions

View File

@ -645,9 +645,11 @@ do_tag (
break; break;
msg_advance(15); msg_advance(15);
/* skip backslash used for escaping command char */ // Skip backslash used for escaping a command char or a backslash.
if (*p == '\\' && *(p + 1) == *tagp.command) if (*p == '\\' && (*(p + 1) == *tagp.command
|| *(p + 1) == '\\')) {
++p; ++p;
}
if (*p == TAB) { if (*p == TAB) {
msg_putchar(' '); msg_putchar(' ');

View File

@ -221,7 +221,7 @@ static int included_patches[] = {
//242, //242,
//241, //241,
//240, //240,
//240, 240,
239, 239,
//238, //238,
//237, //237,