vim-patch: 7.4.1101

Problem:    With 'rightleft' and concealing the cursor may move to the wrong
            position.
Solution:   Compute the column differently when 'rightleft' is set. (Hirohito
            Higashi)

e39b3d9fb4
This commit is contained in:
Michael Ennen
2016-04-21 12:50:33 -07:00
parent cef624ee9e
commit de0ea44698
2 changed files with 7 additions and 3 deletions

View File

@@ -3700,9 +3700,13 @@ win_line (
&& wp == curwin && lnum == wp->w_cursor.lnum
&& conceal_cursor_line(wp)
&& (int)wp->w_virtcol <= vcol + n_skip) {
wp->w_wcol = col - boguscols;
if (wp->w_p_rl) {
wp->w_wcol = wp->w_width - col + boguscols - 1;
} else {
wp->w_wcol = col - boguscols;
}
wp->w_wrow = row;
did_wcol = TRUE;
did_wcol = true;
}
/* Don't override visual selection highlighting. */