Commit 00c53994 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix last change in buffer_posn_from_coords for text terminals.

 dispnew.c (buffer_posn_from_coords): Add one-character offset for R2L lines.
parents 6f505bc8 b43c883c
2010-08-20 Eli Zaretskii <>
* dispnew.c (buffer_posn_from_coords): Fix last change for text
terminals: add one-character offset for R2L lines.
* emacs.c <emacs_version>: Add a comment regarding
msdos/mainmake.v2's dependency on the syntax of this declaration.
......@@ -5402,7 +5402,10 @@ buffer_posn_from_coords (struct window *w, int *x, int *y, struct display_pos *p
iterator doesn't know about that.) The following line adjusts
the pixel position to the iterator geometry, which is what
move_it_* routines use. */
to_x = window_box_width (w, TEXT_AREA) - to_x;
to_x = window_box_width (w, TEXT_AREA) - to_x
/* Text terminals need a one-character offset to get it right. */
/* Now move horizontally in the row to the glyph under *X. */
move_it_in_display_line (&it, ZV, to_x, MOVE_TO_X);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment