diff options
| author | Eli Zaretskii | 2014-10-17 09:43:36 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-10-17 09:43:36 +0300 |
| commit | cacd5c3580cc3ff0c9bd45b6905c3cbf76815412 (patch) | |
| tree | a1023b3a1ff038d1a8f08e543f4f99763b39572c /src | |
| parent | 6743c1928e9e5110da5f7f9a61bcaeb15b68ddec (diff) | |
| download | emacs-cacd5c3580cc3ff0c9bd45b6905c3cbf76815412.tar.gz emacs-cacd5c3580cc3ff0c9bd45b6905c3cbf76815412.zip | |
Fix display on X of 1-pixel R2L characters.
src/xterm.c (x_draw_hollow_cursor): Fix display of hollow cursor on
1-pixel R2L characters.
Reported by Dmitry Antipov <dmantipov@yandex.ru>, see
http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00518.html.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xterm.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 19c553ff7a1..1572c6a2132 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2014-10-17 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xterm.c (x_draw_hollow_cursor): Fix display of hollow cursor on | ||
| 4 | 1-pixel R2L characters. | ||
| 5 | Reported by Dmitry Antipov <dmantipov@yandex.ru>, see | ||
| 6 | http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00518.html. | ||
| 7 | |||
| 1 | 2014-10-10 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2014-10-10 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | Fix port to Debian GNU/kFreeBSD 7 (wheezy) (Bug#18666). | 10 | Fix port to Debian GNU/kFreeBSD 7 (wheezy) (Bug#18666). |
diff --git a/src/xterm.c b/src/xterm.c index 717df452569..b6430ad11b0 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7133,7 +7133,8 @@ x_draw_hollow_cursor (struct window *w, struct glyph_row *row) | |||
| 7133 | && cursor_glyph->pixel_width > w->phys_cursor_width) | 7133 | && cursor_glyph->pixel_width > w->phys_cursor_width) |
| 7134 | { | 7134 | { |
| 7135 | x += cursor_glyph->pixel_width - w->phys_cursor_width; | 7135 | x += cursor_glyph->pixel_width - w->phys_cursor_width; |
| 7136 | wd -= 1; | 7136 | if (wd > 0) |
| 7137 | wd -= 1; | ||
| 7137 | } | 7138 | } |
| 7138 | /* Set clipping, draw the rectangle, and reset clipping again. */ | 7139 | /* Set clipping, draw the rectangle, and reset clipping again. */ |
| 7139 | x_clip_to_row (w, row, TEXT_AREA, gc); | 7140 | x_clip_to_row (w, row, TEXT_AREA, gc); |