diff options
| author | Eli Zaretskii | 2010-04-17 19:02:18 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-04-17 19:02:18 +0300 |
| commit | 43a03da53d3f6bc82813e070e506b0fc367456a4 (patch) | |
| tree | b31c331c8c48e551d284690437a3ca33d214abbe /src | |
| parent | 26cdf52838e1711c9659d6d3908a24805c08925b (diff) | |
| download | emacs-43a03da53d3f6bc82813e070e506b0fc367456a4.tar.gz emacs-43a03da53d3f6bc82813e070e506b0fc367456a4.zip | |
Fix cursor positioning at end of R2L line on TTY frames.
xdisp.c (extend_face_to_end_of_line): Fix off-by-one error on
TTY frames in testing whether a line needs face extension.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8decf682bb8..7f081d9563f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-04-17 Eli Zaretskii <eliz@gnu.org> | 1 | 2010-04-17 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * xdisp.c (extend_face_to_end_of_line): Fix off-by-one error on | ||
| 4 | TTY frames in testing whether a line needs face extension. | ||
| 5 | |||
| 3 | * xdisp.c (extend_face_to_end_of_line): Fix face extension at ZV. | 6 | * xdisp.c (extend_face_to_end_of_line): Fix face extension at ZV. |
| 4 | 7 | ||
| 5 | * term.c (produce_special_glyphs): Mirror the backslash | 8 | * term.c (produce_special_glyphs): Mirror the backslash |
diff --git a/src/xdisp.c b/src/xdisp.c index 475a83449a6..d11812ceb65 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -16803,8 +16803,10 @@ extend_face_to_end_of_line (it) | |||
| 16803 | struct face *face; | 16803 | struct face *face; |
| 16804 | struct frame *f = it->f; | 16804 | struct frame *f = it->f; |
| 16805 | 16805 | ||
| 16806 | /* If line is already filled, do nothing. */ | 16806 | /* If line is already filled, do nothing. Non window-system frames |
| 16807 | if (it->current_x >= it->last_visible_x) | 16807 | get a grace of one more ``pixel'' because their characters are |
| 16808 | 1-``pixel'' wide, so they hit the equality too early. */ | ||
| 16809 | if (it->current_x >= it->last_visible_x + !FRAME_WINDOW_P (f)) | ||
| 16808 | return; | 16810 | return; |
| 16809 | 16811 | ||
| 16810 | /* Face extension extends the background and box of IT->face_id | 16812 | /* Face extension extends the background and box of IT->face_id |