mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
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:
@@ -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. */
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user