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 && wp == curwin && lnum == wp->w_cursor.lnum
&& conceal_cursor_line(wp) && conceal_cursor_line(wp)
&& (int)wp->w_virtcol <= vcol + n_skip) { && (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; wp->w_wrow = row;
did_wcol = TRUE; did_wcol = true;
} }
/* Don't override visual selection highlighting. */ /* Don't override visual selection highlighting. */

View File

@@ -264,7 +264,7 @@ static int included_patches[] = {
// 1104 NA // 1104 NA
// 1103 NA // 1103 NA
// 1102, // 1102,
// 1101, 1101,
// 1100 NA // 1100 NA
// 1099 NA // 1099 NA
// 1098 NA // 1098 NA