diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-10-02 23:09:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-10-02 23:09:31 +0200 |
commit | 84dbd494dca599ecff05b2c2279d402c12e6d197 (patch) | |
tree | faca7727d15b5facdd5d67a4580977a846d25c14 /src | |
parent | 6100d02aab7c8294b581cb299250eea164b50e9d (diff) |
patch 8.0.0021v8.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)
Diffstat (limited to 'src')
-rw-r--r-- | src/screen.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index 4604ec728c..5ebca09804 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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; diff --git a/src/version.c b/src/version.c index b74ad2f4d2..dc8e9cf353 100644 --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 21, +/**/ 20, /**/ 19, |