]> code.delx.au - gnu-emacs/commitdiff
Fix display of overlay strings with faces after ellipsis (Bug#19307)
authorEli Zaretskii <eliz@gnu.org>
Mon, 2 Feb 2015 16:23:32 +0000 (18:23 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 2 Feb 2015 16:23:32 +0000 (18:23 +0200)
 src/xdisp.c (set_iterator_to_next): Set value of stop_charpos
 according to the object we are about to resume iterating.

src/ChangeLog
src/xdisp.c

index c8ea8b586eda768991a8397e9c747fa44c5949c3..6f678d481a684b1525ef63f38477b018b49e296a 100644 (file)
@@ -1,5 +1,9 @@
 2015-02-02  Eli Zaretskii  <eliz@gnu.org>
 
+       * 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.
index 2ebf06d5c3425a43d70dd2d12050a731ec9e72c5..6a1e3ee2dc244cc53bc8b69b19453b8b3af999ea 100644 (file)
@@ -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;