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 / 6.1.157 < prev    next >
Encoding:
Internet Message Format  |  2002-08-17  |  2.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.157
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.157
  11. Problem:    'hlsearch' highlights only the second comma in ",,,,," with
  12.             "/,\@<=[^,]*". (Preben Guldberg)
  13. Solution:   Also check for an empty match to start just after a previous
  14.             match.
  15. Files:      src/screen.c
  16.  
  17.  
  18. *** ../vim61.156/src/screen.c    Sun Jul 21 20:58:30 2002
  19. --- src/screen.c    Sun Aug 18 16:34:13 2002
  20. ***************
  21. *** 3036,3053 ****
  22.                   else
  23.                       shl->endp = line + MAXCOL;
  24.   
  25. !                 /* for a non-null match, loop to check if the
  26. !                  * match starts at the current position */
  27. !                 if (shl->startp != shl->endp)
  28. !                     continue;
  29. !                 /* highlight empty match, try again after it */
  30. ! #ifdef FEAT_MBYTE
  31. !                 if (has_mbyte)
  32. !                     shl->endp += (*mb_ptr2len_check)(shl->endp);
  33. !                 else
  34. ! #endif
  35. !                     ++shl->endp;
  36.                   }
  37.               }
  38.               break;
  39. --- 3036,3057 ----
  40.                   else
  41.                       shl->endp = line + MAXCOL;
  42.   
  43. !                 if (shl->startp == shl->endp)
  44. !                 {
  45. !                     /* highlight empty match, try again after
  46. !                      * it */
  47. ! #ifdef FEAT_MBYTE
  48. !                     if (has_mbyte)
  49. !                     shl->endp +=
  50. !                            (*mb_ptr2len_check)(shl->endp);
  51. !                     else
  52. ! #endif
  53. !                     ++shl->endp;
  54. !                 }
  55. !                 /* Loop to check if the match starts at the
  56. !                  * current position */
  57. !                 continue;
  58.                   }
  59.               }
  60.               break;
  61. *** ../vim61.156/src/version.c    Sun Aug 18 16:05:35 2002
  62. --- src/version.c    Sun Aug 18 16:39:59 2002
  63. ***************
  64. *** 608,609 ****
  65. --- 608,611 ----
  66.   {   /* Add new patch number below this line */
  67. + /**/
  68. +     157,
  69.   /**/
  70.  
  71. -- 
  72. hundred-and-one symptoms of being an internet addict:
  73. 231. You sprinkle Carpet Fresh on the rugs and put your vacuum cleaner
  74.      in the front doorway permanently so it always looks like you are
  75.      actually attempting to do something about that mess that has amassed
  76.      since you discovered the Internet.
  77.  
  78.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  79. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  80. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  81.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  82.