From fe5aab63feb2b03656700d3738d46a19e99edde0 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 2 Apr 2014 17:19:04 +0200 Subject: [PATCH] updated for version 7.4.240 Problem: ":tjump" shows "\n" as "\\n". Solution: Skip over "\" that escapes a backslash. (Gary Johnson) --- src/tag.c | 6 ++++-- src/version.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tag.c b/src/tag.c index be80a1165..ba42f158c 100644 --- a/src/tag.c +++ b/src/tag.c @@ -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) diff --git a/src/version.c b/src/version.c index b00297207..472a7fad0 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 240, /**/ 239, /**/ -- 2.50.1