changeset 39226:d86fe98ee7d5

(direct_output_for_insert): Don't change IT's stop_charpos to something in front of its current position.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 10 Sep 2001 13:25:34 +0000
parents 3fa6a6d82152
children 377e5f02169a
files src/dispnew.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Mon Sep 10 09:37:02 2001 +0000
+++ b/src/dispnew.c	Mon Sep 10 13:25:34 2001 +0000
@@ -3482,6 +3482,7 @@
   it.current_y = w->cursor.y;
   it.end_charpos = PT;
   it.stop_charpos = min (PT, it.stop_charpos);
+  it.stop_charpos = max (IT_CHARPOS (it), it.stop_charpos);
 
   /* More than one display element may be returned for PT - 1 if
      (i) it's a control character which is translated into `\003' or