Skip to content

Commit 84dbd49

Browse files
committed
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)
1 parent 6100d02 commit 84dbd49

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/screen.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,9 @@ update_screen(int type)
765765
* uses that. */
766766
gui.col = gui_cursor_col;
767767
gui.row = gui_cursor_row;
768+
# ifdef FEAT_MBYTE
769+
gui.col = mb_fix_col(gui.col, gui.row);
770+
# endif
768771
gui_update_cursor(FALSE, FALSE);
769772
screen_cur_col = gui.col;
770773
screen_cur_row = gui.row;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
21,
767769
/**/
768770
20,
769771
/**/

0 commit comments

Comments
 (0)