jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.554
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.554
3ef2ca
Problem:    Missing part of patch 7.4.519.
3ef2ca
Solution:   Copy back regprog after calling vim_regexec.
3ef2ca
Files:	    src/quickfix.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.553/src/quickfix.c	2014-07-23 16:33:04.075886500 +0200
3ef2ca
--- src/quickfix.c	2014-11-19 16:21:16.404128731 +0100
3ef2ca
***************
3ef2ca
*** 592,597 ****
3ef2ca
--- 592,599 ----
3ef2ca
  restofline:
3ef2ca
  	for ( ; fmt_ptr != NULL; fmt_ptr = fmt_ptr->next)
3ef2ca
  	{
3ef2ca
+ 	    int r;
3ef2ca
+ 
3ef2ca
  	    idx = fmt_ptr->prefix;
3ef2ca
  	    if (multiscan && vim_strchr((char_u *)"OPQ", idx) == NULL)
3ef2ca
  		continue;
3ef2ca
***************
3ef2ca
*** 607,613 ****
3ef2ca
  	    tail = NULL;
3ef2ca
  
3ef2ca
  	    regmatch.regprog = fmt_ptr->prog;
3ef2ca
! 	    if (vim_regexec(&regmatch, IObuff, (colnr_T)0))
3ef2ca
  	    {
3ef2ca
  		if ((idx == 'C' || idx == 'Z') && !multiline)
3ef2ca
  		    continue;
3ef2ca
--- 609,617 ----
3ef2ca
  	    tail = NULL;
3ef2ca
  
3ef2ca
  	    regmatch.regprog = fmt_ptr->prog;
3ef2ca
! 	    r = vim_regexec(&regmatch, IObuff, (colnr_T)0);
3ef2ca
! 	    fmt_ptr->prog = regmatch.regprog;
3ef2ca
! 	    if (r)
3ef2ca
  	    {
3ef2ca
  		if ((idx == 'C' || idx == 'Z') && !multiline)
3ef2ca
  		    continue;
3ef2ca
*** ../vim-7.4.553/src/version.c	2014-12-17 14:36:10.367090935 +0100
3ef2ca
--- src/version.c	2014-12-17 14:40:51.463618087 +0100
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     554,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
hundred-and-one symptoms of being an internet addict:
3ef2ca
2. You kiss your girlfriend's home page.
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    ///