diff options
| author | Eli Zaretskii | 2010-08-21 00:01:36 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-08-21 00:01:36 +0300 |
| commit | 00c539942563848d146c5fa8fdd1f9bed3fc3cfb (patch) | |
| tree | 59a18f4583e5b2bb8d565e037d8160b03d60e10f /src | |
| parent | 6f505bc82d1d4a9d6ebb3665db8fc7ce8128bd66 (diff) | |
| parent | b43c883c71bc3cf494b17dde69d275c73d10942e (diff) | |
| download | emacs-00c539942563848d146c5fa8fdd1f9bed3fc3cfb.tar.gz emacs-00c539942563848d146c5fa8fdd1f9bed3fc3cfb.zip | |
Fix last change in buffer_posn_from_coords for text terminals.
dispnew.c (buffer_posn_from_coords): Add one-character offset for R2L lines.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/dispnew.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5b44cc8f34c..7d37142e375 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-08-20 Eli Zaretskii <eliz@gnu.org> | 1 | 2010-08-20 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * dispnew.c (buffer_posn_from_coords): Fix last change for text | ||
| 4 | terminals: add one-character offset for R2L lines. | ||
| 5 | |||
| 3 | * emacs.c <emacs_version>: Add a comment regarding | 6 | * emacs.c <emacs_version>: Add a comment regarding |
| 4 | msdos/mainmake.v2's dependency on the syntax of this declaration. | 7 | msdos/mainmake.v2's dependency on the syntax of this declaration. |
| 5 | 8 | ||
diff --git a/src/dispnew.c b/src/dispnew.c index efcfd101782..547ab2a4187 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -5402,7 +5402,10 @@ buffer_posn_from_coords (struct window *w, int *x, int *y, struct display_pos *p | |||
| 5402 | iterator doesn't know about that.) The following line adjusts | 5402 | iterator doesn't know about that.) The following line adjusts |
| 5403 | the pixel position to the iterator geometry, which is what | 5403 | the pixel position to the iterator geometry, which is what |
| 5404 | move_it_* routines use. */ | 5404 | move_it_* routines use. */ |
| 5405 | to_x = window_box_width (w, TEXT_AREA) - to_x; | 5405 | to_x = window_box_width (w, TEXT_AREA) - to_x |
| 5406 | /* Text terminals need a one-character offset to get it right. */ | ||
| 5407 | - (FRAME_MSDOS_P (WINDOW_XFRAME (w)) | ||
| 5408 | || FRAME_TERMCAP_P (WINDOW_XFRAME (w))); | ||
| 5406 | 5409 | ||
| 5407 | /* Now move horizontally in the row to the glyph under *X. */ | 5410 | /* Now move horizontally in the row to the glyph under *X. */ |
| 5408 | move_it_in_display_line (&it, ZV, to_x, MOVE_TO_X); | 5411 | move_it_in_display_line (&it, ZV, to_x, MOVE_TO_X); |