mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix cursor misalignment on truncated RTL rows
* src/xdisp.c (set_cursor_from_row): Begin computing the position of the rightmost glyph from row->x, not 0.
This commit is contained in:
parent
51791fd178
commit
129312aa12
1 changed files with 1 additions and 1 deletions
|
|
@ -18182,7 +18182,7 @@ set_cursor_from_row (struct window *w, struct glyph_row *row,
|
|||
--glyph;
|
||||
/* By default, in reversed rows we put the cursor on the
|
||||
rightmost (first in the reading order) glyph. */
|
||||
for (x = 0, g = end + 1; g < glyph; g++)
|
||||
for (x = row->x, g = end + 1; g < glyph; g++)
|
||||
x += g->pixel_width;
|
||||
while (end < glyph
|
||||
&& NILP ((end + 1)->object)
|
||||
|
|
|
|||
Loading…
Reference in a new issue