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.203 < prev    next >
Encoding:
Internet Message Format  |  2002-10-29  |  1.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.203
  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.203
  11. Problem:    ":%s/~//" causes a crash after ":%s/x//". (Gary Holloway)
  12. Solution:   Avoid reading past the end of a line when "~" is empty.
  13. Files:        src/regexp.c
  14.  
  15.  
  16. *** ../vim61.202/src/regexp.c    Sun Apr 28 22:20:43 2002
  17. --- src/regexp.c    Mon Sep 30 22:14:57 2002
  18. ***************
  19. *** 3434,3440 ****
  20.   #endif
  21.                   TO_LOWER(*opnd) != TO_LOWER(*reginput))))
  22.               return FALSE;
  23. !         if (opnd[1] == NUL
  24.   #ifdef FEAT_MBYTE
  25.                   && !(enc_utf8 && ireg_ic)
  26.   #endif
  27. --- 3436,3447 ----
  28.   #endif
  29.                   TO_LOWER(*opnd) != TO_LOWER(*reginput))))
  30.               return FALSE;
  31. !         if (*opnd == NUL)
  32. !         {
  33. !             /* match empty string always works; happens when "~" is
  34. !              * empty. */
  35. !         }
  36. !         else if (opnd[1] == NUL
  37.   #ifdef FEAT_MBYTE
  38.                   && !(enc_utf8 && ireg_ic)
  39.   #endif
  40. *** ../vim61.202/src/version.c    Mon Sep 30 21:30:08 2002
  41. --- src/version.c    Mon Sep 30 22:20:03 2002
  42. ***************
  43. *** 608,609 ****
  44. --- 608,611 ----
  45.   {   /* Add new patch number below this line */
  46. + /**/
  47. +     203,
  48.   /**/
  49.  
  50. -- 
  51. From "know your smileys":
  52.  :-{}    Too much lipstick
  53.  
  54.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  55. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  56. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  57.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  58.