From: Gerd Moellmann Date: Fri, 16 Feb 2001 12:36:03 +0000 (+0000) Subject: (direct_output_for_insert): Recognize more cases where X-Git-Tag: emacs-pretest-21.0.99~365 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7728f17b18f1d6034931d3bf196d87aaca3084e7;p=emacs.git (direct_output_for_insert): Recognize more cases where glyphs can be written instead of being inserted. --- diff --git a/src/dispnew.c b/src/dispnew.c index 04532d486dd..337e3c9264a 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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);