(direct_output_for_insert): Recognize more cases where
authorGerd Moellmann <gerd@gnu.org>
Fri, 16 Feb 2001 12:36:03 +0000 (12:36 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 16 Feb 2001 12:36:03 +0000 (12:36 +0000)
glyphs can be written instead of being inserted.

src/dispnew.c

index 04532d4..337e3c9 100644 (file)
@@ -3584,7 +3584,10 @@ direct_output_for_insert (g)
     {
       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);