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
|
||||
&& 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. */
|
||||
|
Reference in New Issue
Block a user