1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2016-10-02 23:09:31 +02:00
parent 6100d02aab
commit 84dbd494dc
2 changed files with 5 additions and 0 deletions

View File

@@ -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;