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.038 < prev    next >
Encoding:
Internet Message Format  |  2002-04-27  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.038
  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.038
  11. Problem:    Multi-byte: When a ":s" command contains a multi-byte character
  12.         where the trail byte is '~' the text is messed up.
  13. Solution:   Properly skip multi-byte characters in regtilde() (Muraoka Taro)
  14. Files:        src/regexp.c
  15.  
  16.  
  17. *** ../vim61.037/src/regexp.c    Mon Apr  8 22:11:31 2002
  18. --- src/regexp.c    Thu Apr 25 21:23:49 2002
  19. ***************
  20. *** 5351,5358 ****
  21.           STRCPY(p, p + 2);        /* remove '\~' */
  22.           --p;
  23.       }
  24. !     else if (*p == '\\' && p[1])        /* skip escaped characters */
  25. !         ++p;
  26.       }
  27.   
  28.       vim_free(reg_prev_sub);
  29. --- 5353,5367 ----
  30.           STRCPY(p, p + 2);        /* remove '\~' */
  31.           --p;
  32.       }
  33. !     else
  34. !     {
  35. !         if (*p == '\\' && p[1])        /* skip escaped characters */
  36. !         ++p;
  37. ! #ifdef FEAT_MBYTE
  38. !         if (has_mbyte)
  39. !         p += (*mb_ptr2len_check)(p) - 1;
  40. ! #endif
  41. !     }
  42.       }
  43.   
  44.       vim_free(reg_prev_sub);
  45. *** ../vim61.037/src/version.c    Sun Apr 28 22:17:31 2002
  46. --- src/version.c    Sun Apr 28 22:19:04 2002
  47. ***************
  48. *** 608,609 ****
  49. --- 608,611 ----
  50.   {   /* Add new patch number below this line */
  51. + /**/
  52. +     38,
  53.   /**/
  54.  
  55. -- 
  56. ARTHUR:  You fight with the strength of many men, Sir knight.
  57.          I am Arthur, King of the Britons.  [pause]
  58.          I seek the finest and the bravest knights in the land to join me
  59.          in my Court of Camelot.  [pause]
  60.          You have proved yourself worthy; will you join me?  [pause]
  61.          You make me sad.  So be it.  Come, Patsy.
  62. BLACK KNIGHT:  None shall pass.
  63.                                   The Quest for the Holy Grail (Monty Python)
  64.  
  65.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  66. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  67. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  68.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  69.