Skip to content

Commit e39b3d9

Browse files
committed
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)
1 parent abfa9ef commit e39b3d9

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/screen.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4976,7 +4976,12 @@ win_line(wp, lnum, startrow, endrow, nochange)
49764976
&& conceal_cursor_line(wp)
49774977
&& (int)wp->w_virtcol <= vcol + n_skip)
49784978
{
4979-
wp->w_wcol = col - boguscols;
4979+
# ifdef FEAT_RIGHTLEFT
4980+
if (wp->w_p_rl)
4981+
wp->w_wcol = W_WIDTH(wp) - col + boguscols - 1;
4982+
else
4983+
# endif
4984+
wp->w_wcol = col - boguscols;
49804985
wp->w_wrow = row;
49814986
did_wcol = TRUE;
49824987
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1101,
744746
/**/
745747
1100,
746748
/**/

0 commit comments

Comments
 (0)