aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-09-10 13:25:34 +0000
committerGerd Moellmann2001-09-10 13:25:34 +0000
commitae76d741c2fe2f8c3c01ed0f64d73e19a09021bc (patch)
tree827cc2e3698d6ba34182d453a0d9043973b20748 /src
parent42d305db926aaf8525bcc7624d2f50eeafd4ebc2 (diff)
downloademacs-ae76d741c2fe2f8c3c01ed0f64d73e19a09021bc.tar.gz
emacs-ae76d741c2fe2f8c3c01ed0f64d73e19a09021bc.zip
(direct_output_for_insert): Don't change IT's
stop_charpos to something in front of its current position.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 165b6e4757b..78d3748c259 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -3482,6 +3482,7 @@ direct_output_for_insert (g)
3482 it.current_y = w->cursor.y; 3482 it.current_y = w->cursor.y;
3483 it.end_charpos = PT; 3483 it.end_charpos = PT;
3484 it.stop_charpos = min (PT, it.stop_charpos); 3484 it.stop_charpos = min (PT, it.stop_charpos);
3485 it.stop_charpos = max (IT_CHARPOS (it), it.stop_charpos);
3485 3486
3486 /* More than one display element may be returned for PT - 1 if 3487 /* More than one display element may be returned for PT - 1 if
3487 (i) it's a control character which is translated into `\003' or 3488 (i) it's a control character which is translated into `\003' or