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.1 / 7.1.046 < prev    next >
Encoding:
Internet Message Format  |  2007-11-19  |  1.6 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 7.1.046
  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 7.1.046
  11. Problem:    ":s" command removes combining characters. (Ron Aaron)
  12. Solution:   Copy composing characters individually. (Chris Lubinski)
  13. Files:        src/regexp.c
  14.  
  15.  
  16. *** ../vim-7.1.045/src/regexp.c    Thu May 10 19:58:01 2007
  17. --- src/regexp.c    Fri Jul 27 21:17:47 2007
  18. ***************
  19. *** 7014,7020 ****
  20.   #ifdef FEAT_MBYTE
  21.                   if (has_mbyte)
  22.                   {
  23. !                 int l = mb_ptr2len(s) - 1;
  24.   
  25.                   s += l;
  26.                   len -= l;
  27. --- 7014,7027 ----
  28.   #ifdef FEAT_MBYTE
  29.                   if (has_mbyte)
  30.                   {
  31. !                 int l;
  32. !                 /* Copy composing characters separately, one
  33. !                  * at a time. */
  34. !                 if (enc_utf8)
  35. !                     l = utf_ptr2len(s) - 1;
  36. !                 else
  37. !                     l = mb_ptr2len(s) - 1;
  38.   
  39.                   s += l;
  40.                   len -= l;
  41. *** ../vim-7.1.045/src/version.c    Mon Jul 30 21:59:50 2007
  42. --- src/version.c    Mon Jul 30 22:30:02 2007
  43. ***************
  44. *** 668,669 ****
  45. --- 668,671 ----
  46.   {   /* Add new patch number below this line */
  47. + /**/
  48. +     46,
  49.   /**/
  50.  
  51. -- 
  52. hundred-and-one symptoms of being an internet addict:
  53. 57. You begin to wonder how on earth your service provider is allowed to call
  54.     200 hours per month "unlimited."
  55.  
  56.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  57. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  58. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  59.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  60.