jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.029

3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.029
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.029
3ef2ca
Problem:    An error in a pattern is reported twice.
3ef2ca
Solution:   Remove the retry with the backtracking engine, it won't work.
3ef2ca
Files:	    src/regexp.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.028/src/regexp.c	2013-08-25 17:01:36.000000000 +0200
3ef2ca
--- src/regexp.c	2013-09-19 17:03:31.000000000 +0200
3ef2ca
***************
3ef2ca
*** 8016,8027 ****
3ef2ca
  	}
3ef2ca
  #endif
3ef2ca
  	/*
3ef2ca
! 	 * If NFA engine failed, then revert to the backtracking engine.
3ef2ca
! 	 * Except when there was a syntax error, which was properly handled by
3ef2ca
! 	 * NFA engine.
3ef2ca
! 	 */
3ef2ca
  	if (regexp_engine == AUTOMATIC_ENGINE)
3ef2ca
  	    prog = bt_regengine.regcomp(expr, re_flags);
3ef2ca
      }
3ef2ca
  
3ef2ca
      return prog;
3ef2ca
--- 8016,8026 ----
3ef2ca
  	}
3ef2ca
  #endif
3ef2ca
  	/*
3ef2ca
! 	 * If the NFA engine failed, the backtracking engine won't work either.
3ef2ca
! 	 *
3ef2ca
  	if (regexp_engine == AUTOMATIC_ENGINE)
3ef2ca
  	    prog = bt_regengine.regcomp(expr, re_flags);
3ef2ca
+ 	 */
3ef2ca
      }
3ef2ca
  
3ef2ca
      return prog;
3ef2ca
*** ../vim-7.4.028/src/version.c	2013-09-19 17:00:14.000000000 +0200
3ef2ca
--- src/version.c	2013-09-19 17:01:13.000000000 +0200
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     29,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
The term "free software" is defined by Richard M. Stallman as
3ef2ca
being software that isn't necessarily for free.  Confusing?
3ef2ca
Let's call it "Stallman software" then!
3ef2ca
				-- Bram Moolenaar
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///