lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
76581a6
To: vim_dev@googlegroups.com
76581a6
Subject: Patch 7.4.032
76581a6
Fcc: outbox
76581a6
From: Bram Moolenaar <Bram@moolenaar.net>
76581a6
Mime-Version: 1.0
76581a6
Content-Type: text/plain; charset=UTF-8
76581a6
Content-Transfer-Encoding: 8bit
76581a6
------------
76581a6
76581a6
Patch 7.4.032
76581a6
Problem:    NFA engine does not match the NUL character. (Jonathon Merz)
76581a6
Solution:   Ues 0x0a instead of NUL. (Christian Brabandt)
76581a6
Files:	    src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok
76581a6
76581a6
76581a6
*** ../vim-7.4.031/src/regexp_nfa.c	2013-09-19 17:00:14.000000000 +0200
76581a6
--- src/regexp_nfa.c	2013-09-22 13:53:46.000000000 +0200
76581a6
***************
76581a6
*** 1383,1390 ****
76581a6
  			    EMSG2_RET_FAIL(
76581a6
  			       _("E678: Invalid character after %s%%[dxouU]"),
76581a6
  				    reg_magic == MAGIC_ALL);
76581a6
  			/* TODO: what if a composing character follows? */
76581a6
! 			EMIT(nr);
76581a6
  		    }
76581a6
  		    break;
76581a6
  
76581a6
--- 1383,1391 ----
76581a6
  			    EMSG2_RET_FAIL(
76581a6
  			       _("E678: Invalid character after %s%%[dxouU]"),
76581a6
  				    reg_magic == MAGIC_ALL);
76581a6
+ 			/* A NUL is stored in the text as NL */
76581a6
  			/* TODO: what if a composing character follows? */
76581a6
! 			EMIT(nr == 0 ? 0x0a : nr);
76581a6
  		    }
76581a6
  		    break;
76581a6
  
76581a6
*** ../vim-7.4.031/src/testdir/test64.in	2013-09-05 21:15:38.000000000 +0200
76581a6
--- src/testdir/test64.in	2013-09-22 13:51:53.000000000 +0200
76581a6
***************
76581a6
*** 373,378 ****
76581a6
--- 373,379 ----
76581a6
  :call add(tl, [2, '\%x20', 'yes no', ' '])
76581a6
  :call add(tl, [2, '\%u0020', 'yes no', ' '])
76581a6
  :call add(tl, [2, '\%U00000020', 'yes no', ' '])
76581a6
+ :call add(tl, [2, '\%d0', "yes\x0ano", "\x0a"])
76581a6
  :"
76581a6
  :""""" \%[abc]
76581a6
  :call add(tl, [2, 'foo\%[bar]', 'fobar'])
76581a6
*** ../vim-7.4.031/src/testdir/test64.ok	2013-09-05 21:15:38.000000000 +0200
76581a6
--- src/testdir/test64.ok	2013-09-22 13:52:41.000000000 +0200
76581a6
***************
76581a6
*** 863,868 ****
76581a6
--- 863,871 ----
76581a6
  OK 0 - \%U00000020
76581a6
  OK 1 - \%U00000020
76581a6
  OK 2 - \%U00000020
76581a6
+ OK 0 - \%d0
76581a6
+ OK 1 - \%d0
76581a6
+ OK 2 - \%d0
76581a6
  OK 0 - foo\%[bar]
76581a6
  OK 1 - foo\%[bar]
76581a6
  OK 2 - foo\%[bar]
76581a6
*** ../vim-7.4.031/src/version.c	2013-09-20 20:13:48.000000000 +0200
76581a6
--- src/version.c	2013-09-22 13:56:45.000000000 +0200
76581a6
***************
76581a6
*** 740,741 ****
76581a6
--- 740,743 ----
76581a6
  {   /* Add new patch number below this line */
76581a6
+ /**/
76581a6
+     32,
76581a6
  /**/
76581a6
76581a6
-- 
76581a6
hundred-and-one symptoms of being an internet addict:
76581a6
247. You use www.switchboard.com instead of dialing 411 and 555-12-12
76581a6
     for directory assistance.
76581a6
76581a6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
76581a6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
76581a6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
76581a6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///