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 / unreleased / patches / 6.0ax.006 < prev    next >
Encoding:
Internet Message Format  |  2001-09-20  |  1.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0ax.006
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 6.0ax.006
  8. Problem:    Multi-byte: When writing a single-wide character over a
  9.         double-wide character in a vertically split window not at the
  10.         left side, the space was put in the left window.  Happens when
  11.         'cpoptions' contains "$".
  12. Solution:   Use screen_char() instead of screen_puts() to clear the right
  13.         half.
  14. Files:        src/screen.c
  15.  
  16.  
  17. *** ../vim60ax.5/src/screen.c    Mon Sep 17 15:11:45 2001
  18. --- src/screen.c    Fri Sep 21 10:09:35 2001
  19. ***************
  20. *** 4127,4133 ****
  21.   
  22.   #ifdef FEAT_MBYTE
  23.       if (clear_next)
  24. !     screen_puts((char_u *)" ", row, col, ScreenAttrs[off_to]);
  25.   #endif
  26.   
  27.       if (clear_width > 0
  28. --- 4127,4140 ----
  29.   
  30.   #ifdef FEAT_MBYTE
  31.       if (clear_next)
  32. !     {
  33. !     /* Clear the second half of a double-wide character of which the left
  34. !      * half was overwritten with a single-wide character. */
  35. !     ScreenLines[off_to] = ' ';
  36. !     if (enc_utf8)
  37. !         ScreenLinesUC[off_to] = 0;
  38. !     screen_char(off_to, row, col + coloff);
  39. !     }
  40.   #endif
  41.   
  42.       if (clear_width > 0
  43. *** ../vim60ax.5/src/version.c    Fri Sep 21 10:17:05 2001
  44. --- src/version.c    Fri Sep 21 10:16:46 2001
  45. ***************
  46. *** 608,609 ****
  47. --- 608,611 ----
  48.   {   /* Add new patch number below this line */
  49. + /**/
  50. +     6,
  51.   /**/
  52.  
  53. -- 
  54. Why isn't there mouse-flavored cat food?
  55.  
  56.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  57. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  58.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  59.