aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2014-08-31 18:53:27 +0300
committerEli Zaretskii2014-08-31 18:53:27 +0300
commit267a63b06d5ba2b8315f5b900084c3d6c981ea35 (patch)
tree81b86c9e37b878d1f8e260d500a867b560eff30d /src
parent9f1b8596007a8f4572dde9c444a0790495c1d486 (diff)
downloademacs-267a63b06d5ba2b8315f5b900084c3d6c981ea35.tar.gz
emacs-267a63b06d5ba2b8315f5b900084c3d6c981ea35.zip
Fix cursor display on the fringe of R2L screen lines.
src/xdisp.c (display_and_set_cursor): Call erase_phys_cursor also when HPOS is negative, for the benefit of R2L glyph rows whose newline overflows into the fringe.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xdisp.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b7345b840b8..661731a9c5d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12014-08-31 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (display_and_set_cursor): Call erase_phys_cursor also
4 when HPOS is negative, for the benefit of R2L glyph rows whose
5 newline overflows into the fringe.
6
12014-08-30 Ken Brown <kbrown@cornell.edu> 72014-08-30 Ken Brown <kbrown@cornell.edu>
2 8
3 * conf_post.h (strnicmp) [CYGWIN && HAVE_NTGUI]: Define. 9 * conf_post.h (strnicmp) [CYGWIN && HAVE_NTGUI]: Define.
diff --git a/src/xdisp.c b/src/xdisp.c
index 6ce8e3fff18..d435bf148a0 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -27464,6 +27464,10 @@ display_and_set_cursor (struct window *w, bool on,
27464 && (!on 27464 && (!on
27465 || w->phys_cursor.x != x 27465 || w->phys_cursor.x != x
27466 || w->phys_cursor.y != y 27466 || w->phys_cursor.y != y
27467 /* HPOS can be negative in R2L rows whose
27468 exact_window_width_line_p flag is set (i.e. their newline
27469 would "overflow into the fringe"). */
27470 || hpos < 0
27467 || new_cursor_type != w->phys_cursor_type 27471 || new_cursor_type != w->phys_cursor_type
27468 || ((new_cursor_type == BAR_CURSOR || new_cursor_type == HBAR_CURSOR) 27472 || ((new_cursor_type == BAR_CURSOR || new_cursor_type == HBAR_CURSOR)
27469 && new_cursor_width != w->phys_cursor_width))) 27473 && new_cursor_width != w->phys_cursor_width)))