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.290 < prev    next >
Encoding:
Internet Message Format  |  2003-01-15  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.290 (extra)
  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.290 (extra)
  11. Problem:    Truncating long text for message box may break multi-byte
  12.         character.
  13. Solution:   Adjust to start of multi-byte character. (Yasuhiro Matsumoto)
  14. Files:        src/os_mswin.c
  15.  
  16.  
  17. *** ../vim61.289/src/os_mswin.c    Sun Oct 13 20:08:14 2002
  18. --- src/os_mswin.c    Thu Jan 16 20:37:09 2003
  19. ***************
  20. *** 500,506 ****
  21.           {
  22.           /* Truncate a very long message, it will go off-screen. */
  23.           if (STRLEN(p) > 2000)
  24. !             STRCPY(p + 2000 - 14, _("...(truncated)"));
  25.   #ifdef WIN3264
  26.           MessageBox(NULL, p, "Vim", MB_TASKMODAL|MB_SETFOREGROUND);
  27.   #else
  28. --- 500,514 ----
  29.           {
  30.           /* Truncate a very long message, it will go off-screen. */
  31.           if (STRLEN(p) > 2000)
  32. !         {
  33. !             char_u    *s = p + 2000 - 14;
  34. ! #ifdef FEAT_MBYTE
  35. !             if (has_mbyte)
  36. !             s -= (*mb_head_off)(p, s);
  37. ! #endif
  38. !             STRCPY(s, _("...(truncated)"));
  39. !         }
  40.   #ifdef WIN3264
  41.           MessageBox(NULL, p, "Vim", MB_TASKMODAL|MB_SETFOREGROUND);
  42.   #else
  43. *** ../vim61.289/src/version.c    Tue Jan 14 10:38:37 2003
  44. --- src/version.c    Thu Jan 16 20:39:39 2003
  45. ***************
  46. *** 608,609 ****
  47. --- 608,611 ----
  48.   {   /* Add new patch number below this line */
  49. + /**/
  50. +     290,
  51.   /**/
  52.  
  53. -- 
  54. It is too bad that the speed of light hasn't kept pace with the
  55. changes in CPU speed and network bandwidth. -- <wietse@porcupine.org>
  56.  
  57.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  58. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  59. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  60.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  61.