Permalink
Browse files

patch 8.0.0021

Problem:    In the GUI when redrawing the cursor it may be on the second half
            of a double byte character.
Solution:   Correct the cursor column. (Yasuhiro Matsumoto)
  • Loading branch information...
1 parent 6100d02 commit 84dbd494dca599ecff05b2c2279d402c12e6d197 @brammool brammool committed Oct 2, 2016
Showing with 5 additions and 0 deletions.
  1. +3 −0 src/screen.c
  2. +2 −0 src/version.c
View
@@ -765,6 +765,9 @@ update_screen(int type)
* uses that. */
gui.col = gui_cursor_col;
gui.row = gui_cursor_row;
+# ifdef FEAT_MBYTE
+ gui.col = mb_fix_col(gui.col, gui.row);
+# endif
gui_update_cursor(FALSE, FALSE);
screen_cur_col = gui.col;
screen_cur_row = gui.row;
View
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 21,
+/**/
20,
/**/
19,

0 comments on commit 84dbd49

Please sign in to comment.