Karsten Hopp eac4b3
To: vim_dev@googlegroups.com
Karsten Hopp eac4b3
Subject: Patch 7.3.1184
Karsten Hopp eac4b3
Fcc: outbox
Karsten Hopp eac4b3
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp eac4b3
Mime-Version: 1.0
Karsten Hopp eac4b3
Content-Type: text/plain; charset=UTF-8
Karsten Hopp eac4b3
Content-Transfer-Encoding: 8bit
Karsten Hopp eac4b3
------------
Karsten Hopp eac4b3
Karsten Hopp eac4b3
Patch 7.3.1184
Karsten Hopp eac4b3
Problem:    Highlighting is sometimes wrong. (Axel Bender)
Karsten Hopp eac4b3
Solution:   Fetch regline again when returning from recursive regmatch.
Karsten Hopp eac4b3
Files:	    src/regexp_nfa.c
Karsten Hopp eac4b3
Karsten Hopp eac4b3
Karsten Hopp eac4b3
*** ../vim-7.3.1183/src/regexp_nfa.c	2013-06-11 22:44:03.000000000 +0200
Karsten Hopp eac4b3
--- src/regexp_nfa.c	2013-06-13 19:32:31.000000000 +0200
Karsten Hopp eac4b3
***************
Karsten Hopp eac4b3
*** 4495,4501 ****
Karsten Hopp eac4b3
      int		    **listids;
Karsten Hopp eac4b3
  {
Karsten Hopp eac4b3
      char_u	*save_reginput = reginput;
Karsten Hopp eac4b3
-     char_u	*save_regline = regline;
Karsten Hopp eac4b3
      int		save_reglnum = reglnum;
Karsten Hopp eac4b3
      int		save_nfa_match = nfa_match;
Karsten Hopp eac4b3
      int		save_nfa_listid = nfa_listid;
Karsten Hopp eac4b3
--- 4495,4500 ----
Karsten Hopp eac4b3
***************
Karsten Hopp eac4b3
*** 4633,4640 ****
Karsten Hopp eac4b3
  
Karsten Hopp eac4b3
      /* restore position in input text */
Karsten Hopp eac4b3
      reginput = save_reginput;
Karsten Hopp eac4b3
-     regline = save_regline;
Karsten Hopp eac4b3
      reglnum = save_reglnum;
Karsten Hopp eac4b3
      nfa_match = save_nfa_match;
Karsten Hopp eac4b3
      nfa_endp = save_nfa_endp;
Karsten Hopp eac4b3
      nfa_listid = save_nfa_listid;
Karsten Hopp eac4b3
--- 4632,4640 ----
Karsten Hopp eac4b3
  
Karsten Hopp eac4b3
      /* restore position in input text */
Karsten Hopp eac4b3
      reginput = save_reginput;
Karsten Hopp eac4b3
      reglnum = save_reglnum;
Karsten Hopp eac4b3
+     if (REG_MULTI)
Karsten Hopp eac4b3
+ 	regline = reg_getline(reglnum);
Karsten Hopp eac4b3
      nfa_match = save_nfa_match;
Karsten Hopp eac4b3
      nfa_endp = save_nfa_endp;
Karsten Hopp eac4b3
      nfa_listid = save_nfa_listid;
Karsten Hopp eac4b3
*** ../vim-7.3.1183/src/version.c	2013-06-13 19:27:13.000000000 +0200
Karsten Hopp eac4b3
--- src/version.c	2013-06-13 19:32:57.000000000 +0200
Karsten Hopp eac4b3
***************
Karsten Hopp eac4b3
*** 730,731 ****
Karsten Hopp eac4b3
--- 730,733 ----
Karsten Hopp eac4b3
  {   /* Add new patch number below this line */
Karsten Hopp eac4b3
+ /**/
Karsten Hopp eac4b3
+     1184,
Karsten Hopp eac4b3
  /**/
Karsten Hopp eac4b3
Karsten Hopp eac4b3
-- 
Karsten Hopp eac4b3
hundred-and-one symptoms of being an internet addict:
Karsten Hopp eac4b3
183. You move your coffeemaker next to your computer.
Karsten Hopp eac4b3
Karsten Hopp eac4b3
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp eac4b3
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp eac4b3
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp eac4b3
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///