Karsten Hopp bd40ee
To: vim_dev@googlegroups.com
Karsten Hopp bd40ee
Subject: Patch 7.4.240
Karsten Hopp bd40ee
Fcc: outbox
Karsten Hopp bd40ee
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bd40ee
Mime-Version: 1.0
Karsten Hopp bd40ee
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bd40ee
Content-Transfer-Encoding: 8bit
Karsten Hopp bd40ee
------------
Karsten Hopp bd40ee
Karsten Hopp bd40ee
Patch 7.4.240
Karsten Hopp bd40ee
Problem:    ":tjump" shows "\n" as "\\n".
Karsten Hopp bd40ee
Solution:   Skip over "\" that escapes a backslash. (Gary Johnson)
Karsten Hopp bd40ee
Files:	    src/tag.c
Karsten Hopp bd40ee
Karsten Hopp bd40ee
Karsten Hopp bd40ee
*** ../vim-7.4.239/src/tag.c	2013-11-28 14:36:24.000000000 +0100
Karsten Hopp bd40ee
--- src/tag.c	2014-04-02 17:14:27.087731943 +0200
Karsten Hopp bd40ee
***************
Karsten Hopp bd40ee
*** 741,748 ****
Karsten Hopp bd40ee
  			    break;
Karsten Hopp bd40ee
  			msg_advance(15);
Karsten Hopp bd40ee
  
Karsten Hopp bd40ee
! 			/* skip backslash used for escaping command char */
Karsten Hopp bd40ee
! 			if (*p == '\\' && *(p + 1) == *tagp.command)
Karsten Hopp bd40ee
  			    ++p;
Karsten Hopp bd40ee
  
Karsten Hopp bd40ee
  			if (*p == TAB)
Karsten Hopp bd40ee
--- 741,750 ----
Karsten Hopp bd40ee
  			    break;
Karsten Hopp bd40ee
  			msg_advance(15);
Karsten Hopp bd40ee
  
Karsten Hopp bd40ee
! 			/* skip backslash used for escaping a command char or
Karsten Hopp bd40ee
! 			 * a backslash */
Karsten Hopp bd40ee
! 			if (*p == '\\' && (*(p + 1) == *tagp.command
Karsten Hopp bd40ee
! 				        || *(p + 1) == '\\'))
Karsten Hopp bd40ee
  			    ++p;
Karsten Hopp bd40ee
  
Karsten Hopp bd40ee
  			if (*p == TAB)
Karsten Hopp bd40ee
*** ../vim-7.4.239/src/version.c	2014-04-02 14:22:00.123874274 +0200
Karsten Hopp bd40ee
--- src/version.c	2014-04-02 17:15:26.395731128 +0200
Karsten Hopp bd40ee
***************
Karsten Hopp bd40ee
*** 736,737 ****
Karsten Hopp bd40ee
--- 736,739 ----
Karsten Hopp bd40ee
  {   /* Add new patch number below this line */
Karsten Hopp bd40ee
+ /**/
Karsten Hopp bd40ee
+     240,
Karsten Hopp bd40ee
  /**/
Karsten Hopp bd40ee
Karsten Hopp bd40ee
-- 
Karsten Hopp bd40ee
Anyone who is capable of getting themselves made President should on no
Karsten Hopp bd40ee
account be allowed to do the job.
Karsten Hopp bd40ee
		-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
Karsten Hopp bd40ee
Karsten Hopp bd40ee
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bd40ee
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bd40ee
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp bd40ee
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///