]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 04532d486dda2d0c67ad6d451a76cd8165322069..337e3c9264a8e418216f3a6d0a06d8e447a0c4e1 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);