emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 27e11c0: Fix display of overlay strings with face


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-24 27e11c0: Fix display of overlay strings with faces after ellipsis (Bug#19307)
Date: Mon, 02 Feb 2015 16:25:10 +0000

branch: emacs-24
commit 27e11c01859e0d60c4c8502421a5d363d0153dfb
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix display of overlay strings with faces after ellipsis  (Bug#19307)
    
     src/xdisp.c (set_iterator_to_next): Set value of stop_charpos
     according to the object we are about to resume iterating.
---
 src/ChangeLog |    4 ++++
 src/xdisp.c   |    7 ++++++-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index c8ea8b5..6f678d4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
 2015-02-02  Eli Zaretskii  <address@hidden>
 
+       * xdisp.c (set_iterator_to_next): Set value of stop_charpos
+       according to the object we are about to resume iterating.
+       (Bug#19307)
+
        * dispnew.c (adjust_glyph_matrix): Set the update_mode_line flag
        of the window whose current glyph matrix was resized, which
        disables the mode-line row as side effect.
diff --git a/src/xdisp.c b/src/xdisp.c
index 2ebf06d..6a1e3ee 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -7488,7 +7488,12 @@ set_iterator_to_next (struct it *it, int reseat_p)
 
          /* Maybe recheck faces after display vector.  */
          if (recheck_faces)
-           it->stop_charpos = IT_CHARPOS (*it);
+           {
+             if (it->method == GET_FROM_STRING)
+               it->stop_charpos = IT_STRING_CHARPOS (*it);
+             else
+               it->stop_charpos = IT_CHARPOS (*it);
+           }
        }
       break;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]