To: vim-dev@vim.org Subject: Patch 6.1.342 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.342 (depends on 6.1.341) Problem: With 'rightleft' set typing "c" on a double-wide character causes the cursor to be displayed one cell to the left. Solution: Draw the cursor in the next character cell. (Yasuhiro Matsumoto) Files: src/gui.c *** ../vim61.341/src/gui.c Mon Feb 17 21:06:47 2003 --- src/gui.c Tue Feb 18 21:38:33 2003 *************** *** 973,982 **** /* Double wide character. */ if (shape_table[idx].shape != SHAPE_VER) cur_width += gui.char_width; ! else if (!(State & CMDLINE) && curwin->w_p_rl) { /* gui.col points to the left halve of the character but ! * the vertical line needs to be on the right halve. */ col_off = TRUE; ++gui.col; } --- 974,985 ---- /* Double wide character. */ if (shape_table[idx].shape != SHAPE_VER) cur_width += gui.char_width; ! if (!(State & CMDLINE) && curwin->w_p_rl) { /* gui.col points to the left halve of the character but ! * the vertical line needs to be on the right halve. ! * A double-wide horizontal line is also drawn from the ! * right halve in gui_mch_draw_part_cursor(). */ col_off = TRUE; ++gui.col; } *** ../vim61.341/src/version.c Mon Feb 17 21:06:47 2003 --- src/version.c Tue Feb 18 21:40:08 2003 *************** *** 608,609 **** --- 612,615 ---- { /* Add new patch number below this line */ + /**/ + 342, /**/ -- DINGO: Wicked wicked Zoot ... she is a bad person and she must pay the penalty. And here in Castle Anthrax, we have but one punishment ... you must tie her down on a bed ... and spank her. Come! GIRLS: A spanking! A spanking! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///