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)
Files:      src/screen.c


*** ../vim-8.0.0020/src/screen.c        2016-08-29 22:42:20.000000000 +0200
--- src/screen.c        2016-10-02 23:04:57.705033401 +0200
***************
*** 765,770 ****
--- 765,773 ----
             * 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;
*** ../vim-8.0.0020/src/version.c       2016-10-02 16:51:32.748592858 +0200
--- src/version.c       2016-10-02 23:06:01.632588200 +0200
***************
*** 766,767 ****
--- 766,769 ----
  {   /* Add new patch number below this line */
+ /**/
+     21,
  /**/

-- 
BLACK KNIGHT:  I move for no man.
ARTHUR:        So be it!
    [hah] [parry thrust]
    [ARTHUR chops the BLACK KNIGHT's left arm off]
ARTHUR:        Now stand aside, worthy adversary.
BLACK KNIGHT:  'Tis but a scratch.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui