Karsten Hopp 09ac72
To: vim_dev@googlegroups.com
Karsten Hopp 09ac72
Subject: Patch 7.3.1189
Karsten Hopp 09ac72
Fcc: outbox
Karsten Hopp 09ac72
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 09ac72
Mime-Version: 1.0
Karsten Hopp 09ac72
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 09ac72
Content-Transfer-Encoding: 8bit
Karsten Hopp 09ac72
------------
Karsten Hopp 09ac72
Karsten Hopp 09ac72
Patch 7.3.1189 (after 7.3.1185)
Karsten Hopp 09ac72
Problem:    Highlighting is still wrong sometimes. (Dominique Pelle)
Karsten Hopp 09ac72
Solution:   Also restore reginput properly.
Karsten Hopp 09ac72
Files:	    src/regexp_nfa.c
Karsten Hopp 09ac72
Karsten Hopp 09ac72
Karsten Hopp 09ac72
*** ../vim-7.3.1188/src/regexp_nfa.c	2013-06-13 20:19:35.000000000 +0200
Karsten Hopp 09ac72
--- src/regexp_nfa.c	2013-06-13 22:52:38.000000000 +0200
Karsten Hopp 09ac72
***************
Karsten Hopp 09ac72
*** 4495,4501 ****
Karsten Hopp 09ac72
      regsubs_T	    *m;
Karsten Hopp 09ac72
      int		    **listids;
Karsten Hopp 09ac72
  {
Karsten Hopp 09ac72
!     char_u	*save_reginput = reginput;
Karsten Hopp 09ac72
      int		save_reglnum = reglnum;
Karsten Hopp 09ac72
      int		save_nfa_match = nfa_match;
Karsten Hopp 09ac72
      int		save_nfa_listid = nfa_listid;
Karsten Hopp 09ac72
--- 4495,4501 ----
Karsten Hopp 09ac72
      regsubs_T	    *m;
Karsten Hopp 09ac72
      int		    **listids;
Karsten Hopp 09ac72
  {
Karsten Hopp 09ac72
!     int		save_reginput_col = (int)(reginput - regline);
Karsten Hopp 09ac72
      int		save_reglnum = reglnum;
Karsten Hopp 09ac72
      int		save_nfa_match = nfa_match;
Karsten Hopp 09ac72
      int		save_nfa_listid = nfa_listid;
Karsten Hopp 09ac72
***************
Karsten Hopp 09ac72
*** 4632,4641 ****
Karsten Hopp 09ac72
      }
Karsten Hopp 09ac72
  
Karsten Hopp 09ac72
      /* restore position in input text */
Karsten Hopp 09ac72
-     reginput = save_reginput;
Karsten Hopp 09ac72
      reglnum = save_reglnum;
Karsten Hopp 09ac72
      if (REG_MULTI)
Karsten Hopp 09ac72
  	regline = reg_getline(reglnum);
Karsten Hopp 09ac72
      nfa_match = save_nfa_match;
Karsten Hopp 09ac72
      nfa_endp = save_nfa_endp;
Karsten Hopp 09ac72
      nfa_listid = save_nfa_listid;
Karsten Hopp 09ac72
--- 4632,4641 ----
Karsten Hopp 09ac72
      }
Karsten Hopp 09ac72
  
Karsten Hopp 09ac72
      /* restore position in input text */
Karsten Hopp 09ac72
      reglnum = save_reglnum;
Karsten Hopp 09ac72
      if (REG_MULTI)
Karsten Hopp 09ac72
  	regline = reg_getline(reglnum);
Karsten Hopp 09ac72
+     reginput = regline + save_reginput_col;
Karsten Hopp 09ac72
      nfa_match = save_nfa_match;
Karsten Hopp 09ac72
      nfa_endp = save_nfa_endp;
Karsten Hopp 09ac72
      nfa_listid = save_nfa_listid;
Karsten Hopp 09ac72
*** ../vim-7.3.1188/src/version.c	2013-06-13 21:57:16.000000000 +0200
Karsten Hopp 09ac72
--- src/version.c	2013-06-13 22:53:34.000000000 +0200
Karsten Hopp 09ac72
***************
Karsten Hopp 09ac72
*** 730,731 ****
Karsten Hopp 09ac72
--- 730,733 ----
Karsten Hopp 09ac72
  {   /* Add new patch number below this line */
Karsten Hopp 09ac72
+ /**/
Karsten Hopp 09ac72
+     1189,
Karsten Hopp 09ac72
  /**/
Karsten Hopp 09ac72
Karsten Hopp 09ac72
-- 
Karsten Hopp 09ac72
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 09ac72
194. Your business cards contain your e-mail and home page address.
Karsten Hopp 09ac72
Karsten Hopp 09ac72
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 09ac72
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 09ac72
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 09ac72
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///