home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.1189 < prev    next >
Encoding:
Internet Message Format  |  2013-06-12  |  2.3 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1189
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.1189 (after 7.3.1185)
  11. Problem:    Highlighting is still wrong sometimes. (Dominique Pelle)
  12. Solution:   Also restore reginput properly.
  13. Files:        src/regexp_nfa.c
  14.  
  15.  
  16. *** ../vim-7.3.1188/src/regexp_nfa.c    2013-06-13 20:19:35.000000000 +0200
  17. --- src/regexp_nfa.c    2013-06-13 22:52:38.000000000 +0200
  18. ***************
  19. *** 4495,4501 ****
  20.       regsubs_T        *m;
  21.       int            **listids;
  22.   {
  23. !     char_u    *save_reginput = reginput;
  24.       int        save_reglnum = reglnum;
  25.       int        save_nfa_match = nfa_match;
  26.       int        save_nfa_listid = nfa_listid;
  27. --- 4495,4501 ----
  28.       regsubs_T        *m;
  29.       int            **listids;
  30.   {
  31. !     int        save_reginput_col = (int)(reginput - regline);
  32.       int        save_reglnum = reglnum;
  33.       int        save_nfa_match = nfa_match;
  34.       int        save_nfa_listid = nfa_listid;
  35. ***************
  36. *** 4632,4641 ****
  37.       }
  38.   
  39.       /* restore position in input text */
  40. -     reginput = save_reginput;
  41.       reglnum = save_reglnum;
  42.       if (REG_MULTI)
  43.       regline = reg_getline(reglnum);
  44.       nfa_match = save_nfa_match;
  45.       nfa_endp = save_nfa_endp;
  46.       nfa_listid = save_nfa_listid;
  47. --- 4632,4641 ----
  48.       }
  49.   
  50.       /* restore position in input text */
  51.       reglnum = save_reglnum;
  52.       if (REG_MULTI)
  53.       regline = reg_getline(reglnum);
  54. +     reginput = regline + save_reginput_col;
  55.       nfa_match = save_nfa_match;
  56.       nfa_endp = save_nfa_endp;
  57.       nfa_listid = save_nfa_listid;
  58. *** ../vim-7.3.1188/src/version.c    2013-06-13 21:57:16.000000000 +0200
  59. --- src/version.c    2013-06-13 22:53:34.000000000 +0200
  60. ***************
  61. *** 730,731 ****
  62. --- 730,733 ----
  63.   {   /* Add new patch number below this line */
  64. + /**/
  65. +     1189,
  66.   /**/
  67.  
  68. -- 
  69. hundred-and-one symptoms of being an internet addict:
  70. 194. Your business cards contain your e-mail and home page address.
  71.  
  72.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  73. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  74. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  75.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  76.