Mirror of the Vim source from https://github.com/vim/vim
Revision | cbe70f2e756d80015f6f0057e13a882ee7567276 (tree) |
---|---|
Time | 2008-02-20 22:16:29 |
Author | vimboss |
Commiter | vimboss |
updated for version 7.1-259
@@ -8045,9 +8045,13 @@ | ||
8045 | 8045 | windgoto(W_WINROW(curwin) + curwin->w_wrow, |
8046 | 8046 | W_WINCOL(curwin) + ( |
8047 | 8047 | #ifdef FEAT_RIGHTLEFT |
8048 | + /* With 'rightleft' set and the cursor on a double-wide | |
8049 | + * character, position it on the leftmost column. */ | |
8048 | 8050 | curwin->w_p_rl ? ((int)W_WIDTH(curwin) - curwin->w_wcol - ( |
8049 | 8051 | # ifdef FEAT_MBYTE |
8050 | - has_mbyte ? (*mb_ptr2cells)(ml_get_cursor()) : | |
8052 | + (has_mbyte | |
8053 | + && (*mb_ptr2cells)(ml_get_cursor()) == 2 | |
8054 | + && vim_isprintc(gchar_cursor())) ? 2 : | |
8051 | 8055 | # endif |
8052 | 8056 | 1)) : |
8053 | 8057 | #endif |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 259, | |
671 | +/**/ | |
670 | 672 | 258, |
671 | 673 | /**/ |
672 | 674 | 257, |