Patch 7.3.1189 (after 7.3.1185)
Problem:    Highlighting is still wrong sometimes. (Dominique Pelle)
Solution:   Also restore reginput properly.
Files:      src/regexp_nfa.c


*** ../vim-7.3.1188/src/regexp_nfa.c    2013-06-13 20:19:35.000000000 +0200
--- src/regexp_nfa.c    2013-06-13 22:52:38.000000000 +0200
***************
*** 4495,4501 ****
      regsubs_T     *m;
      int                   **listids;
  {
!     char_u    *save_reginput = reginput;
      int               save_reglnum = reglnum;
      int               save_nfa_match = nfa_match;
      int               save_nfa_listid = nfa_listid;
--- 4495,4501 ----
      regsubs_T     *m;
      int                   **listids;
  {
!     int               save_reginput_col = (int)(reginput - regline);
      int               save_reglnum = reglnum;
      int               save_nfa_match = nfa_match;
      int               save_nfa_listid = nfa_listid;
***************
*** 4632,4641 ****
      }
  
      /* restore position in input text */
-     reginput = save_reginput;
      reglnum = save_reglnum;
      if (REG_MULTI)
        regline = reg_getline(reglnum);
      nfa_match = save_nfa_match;
      nfa_endp = save_nfa_endp;
      nfa_listid = save_nfa_listid;
--- 4632,4641 ----
      }
  
      /* restore position in input text */
      reglnum = save_reglnum;
      if (REG_MULTI)
        regline = reg_getline(reglnum);
+     reginput = regline + save_reginput_col;
      nfa_match = save_nfa_match;
      nfa_endp = save_nfa_endp;
      nfa_listid = save_nfa_listid;
*** ../vim-7.3.1188/src/version.c       2013-06-13 21:57:16.000000000 +0200
--- src/version.c       2013-06-13 22:53:34.000000000 +0200
***************
*** 730,731 ****
--- 730,733 ----
  {   /* Add new patch number below this line */
+ /**/
+     1189,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
194. Your business cards contain your e-mail and home page address.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui