diff options
| author | Eli Zaretskii | 2014-09-16 18:44:51 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-09-16 18:44:51 +0300 |
| commit | c20b4c2de5a8c5ef4ac0655d74dd28c002b7aad3 (patch) | |
| tree | d476c56b1149211b946ec552876873152d6b6cb3 /src | |
| parent | 005aff709292db4fda0c39e7ed512f064bb7d1a9 (diff) | |
| download | emacs-c20b4c2de5a8c5ef4ac0655d74dd28c002b7aad3.tar.gz emacs-c20b4c2de5a8c5ef4ac0655d74dd28c002b7aad3.zip | |
Fix block cursor display in R2L lines.
src/xterm.c (x_draw_stretch_glyph_string):
src/w32term.c (x_draw_stretch_glyph_string): Fix a thinko that
caused the block cursor to disappear on a TAB in R2L lines in
every window except the leftmost one. Reported by Martin Rudalics
<rudalics@gmx.at>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/w32term.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 915a53f7e6e..49ff8efc794 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2014-09-16 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xterm.c (x_draw_stretch_glyph_string): | ||
| 4 | * w32term.c (x_draw_stretch_glyph_string): Fix a thinko that | ||
| 5 | caused the block cursor to disappear on a TAB in R2L lines in | ||
| 6 | every window except the leftmost one. Reported by Martin Rudalics | ||
| 7 | <rudalics@gmx.at>. | ||
| 8 | |||
| 1 | 2014-09-16 Dmitry Antipov <dmantipov@yandex.ru> | 9 | 2014-09-16 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 10 | ||
| 3 | Always use matched specpdl entry to record call arguments (Bug#18473). | 11 | Always use matched specpdl entry to record call arguments (Bug#18473). |
diff --git a/src/w32term.c b/src/w32term.c index 2781fb63d62..e4813e9e02f 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -2227,7 +2227,7 @@ x_draw_stretch_glyph_string (struct glyph_string *s) | |||
| 2227 | { | 2227 | { |
| 2228 | /* In R2L rows, draw the cursor on the right edge of the | 2228 | /* In R2L rows, draw the cursor on the right edge of the |
| 2229 | stretch glyph. */ | 2229 | stretch glyph. */ |
| 2230 | int right_x = window_box_right_offset (s->w, TEXT_AREA); | 2230 | int right_x = window_box_right (s->w, TEXT_AREA); |
| 2231 | 2231 | ||
| 2232 | if (x + background_width > right_x) | 2232 | if (x + background_width > right_x) |
| 2233 | background_width -= x - right_x; | 2233 | background_width -= x - right_x; |
diff --git a/src/xterm.c b/src/xterm.c index 7723f1af77f..f426755e401 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2475,7 +2475,7 @@ x_draw_stretch_glyph_string (struct glyph_string *s) | |||
| 2475 | { | 2475 | { |
| 2476 | /* In R2L rows, draw the cursor on the right edge of the | 2476 | /* In R2L rows, draw the cursor on the right edge of the |
| 2477 | stretch glyph. */ | 2477 | stretch glyph. */ |
| 2478 | int right_x = window_box_right_offset (s->w, TEXT_AREA); | 2478 | int right_x = window_box_right (s->w, TEXT_AREA); |
| 2479 | 2479 | ||
| 2480 | if (x + background_width > right_x) | 2480 | if (x + background_width > right_x) |
| 2481 | background_width -= x - right_x; | 2481 | background_width -= x - right_x; |