On 2014-01-06, Gary Johnson wrote:
> The :tjump command displays the character constant '\n' incorrectly
> as '\\n'.

[Description skipped]

Assuming that this behavior is considered a defect and not a
feature, I have attached a proposed patch.  It discards each
backslash in the tagaddress that is followed by another backslash.

I initially discarded all escaping backslashes, which seemed safe by
my understanding of the tags file format described at
http://ctags.sourceforge.net/FORMAT, but then decided on the more
conservative solution that fixes just the immediate problem.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff -r bc19475ed196 src/tag.c
--- a/src/tag.c	Mon Jan 06 15:51:55 2014 +0100
+++ b/src/tag.c	Mon Jan 06 18:32:02 2014 -0800
@@ -741,8 +741,10 @@
 			    break;
 			msg_advance(15);
 
-			/* skip backslash used for escaping command char */
-			if (*p == '\\' && *(p + 1) == *tagp.command)
+			/* skip backslash used for escaping command char or a
+			 * backslash */
+			if (*p == '\\' && (*(p + 1) == *tagp.command
+				    || *(p + 1) == '\\'))
 			    ++p;
 
 			if (*p == TAB)

Raspunde prin e-mail lui