diff src/dispnew.c @ 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 1dfaaf6d6166
children 1e3dc8692936
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);