changeset 36115:c0fac212cfcc

(direct_output_for_insert): Recognize more cases where glyphs can be written instead of being inserted.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 16 Feb 2001 12:36:03 +0000
parents df2b74b0a766
children 68c02499d990
files src/dispnew.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Fri Feb 16 12:35:09 2001 +0000
+++ b/src/dispnew.c	Fri Feb 16 12:36:03 2001 +0000
@@ -3584,7 +3584,10 @@
     {
       rif->update_window_begin_hook (w);
       
-      if (glyphs == end - n)
+      if (glyphs == end - n
+	  /* In front of a space added by append_space.  */
+	  || (glyphs == end - n - 1
+	      && (end - n)->charpos <= 0))
 	rif->write_glyphs (glyphs, n);
       else
 	rif->insert_glyphs (glyphs, n);