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.342 < prev    next >
Encoding:
Internet Message Format  |  2003-02-17  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.342
  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.342 (depends on 6.1.341)
  11. Problem:    With 'rightleft' set typing "c" on a double-wide character causes
  12.         the cursor to be displayed one cell to the left.
  13. Solution:   Draw the cursor in the next character cell.  (Yasuhiro Matsumoto)
  14. Files:        src/gui.c
  15.  
  16.  
  17. *** ../vim61.341/src/gui.c    Mon Feb 17 21:06:47 2003
  18. --- src/gui.c    Tue Feb 18 21:38:33 2003
  19. ***************
  20. *** 973,982 ****
  21.           /* Double wide character. */
  22.           if (shape_table[idx].shape != SHAPE_VER)
  23.               cur_width += gui.char_width;
  24. !         else if (!(State & CMDLINE) && curwin->w_p_rl)
  25.           {
  26.               /* gui.col points to the left halve of the character but
  27. !              * the vertical line needs to be on the right halve. */
  28.               col_off = TRUE;
  29.               ++gui.col;
  30.           }
  31. --- 974,985 ----
  32.           /* Double wide character. */
  33.           if (shape_table[idx].shape != SHAPE_VER)
  34.               cur_width += gui.char_width;
  35. !         if (!(State & CMDLINE) && curwin->w_p_rl)
  36.           {
  37.               /* gui.col points to the left halve of the character but
  38. !              * the vertical line needs to be on the right halve.
  39. !              * A double-wide horizontal line is also drawn from the
  40. !              * right halve in gui_mch_draw_part_cursor(). */
  41.               col_off = TRUE;
  42.               ++gui.col;
  43.           }
  44. *** ../vim61.341/src/version.c    Mon Feb 17 21:06:47 2003
  45. --- src/version.c    Tue Feb 18 21:40:08 2003
  46. ***************
  47. *** 608,609 ****
  48. --- 612,615 ----
  49.   {   /* Add new patch number below this line */
  50. + /**/
  51. +     342,
  52.   /**/
  53.  
  54. -- 
  55. DINGO: Wicked wicked Zoot ... she is a bad person and she must pay the
  56.        penalty.  And here in Castle Anthrax, we have but one punishment
  57.        ... you must tie her down on a bed ... and spank her.  Come!
  58. GIRLS: A spanking!  A spanking!
  59.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  60.  
  61.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  62. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  63. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  64.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  65.