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:
@@ -765,6 +765,9 @@ update_screen(int type)
|
|||||||
* uses that. */
|
* uses that. */
|
||||||
gui.col = gui_cursor_col;
|
gui.col = gui_cursor_col;
|
||||||
gui.row = gui_cursor_row;
|
gui.row = gui_cursor_row;
|
||||||
|
# ifdef FEAT_MBYTE
|
||||||
|
gui.col = mb_fix_col(gui.col, gui.row);
|
||||||
|
# endif
|
||||||
gui_update_cursor(FALSE, FALSE);
|
gui_update_cursor(FALSE, FALSE);
|
||||||
screen_cur_col = gui.col;
|
screen_cur_col = gui.col;
|
||||||
screen_cur_row = gui.row;
|
screen_cur_row = gui.row;
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
21,
|
||||||
/**/
|
/**/
|
||||||
20,
|
20,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user