aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-02-16 12:36:03 +0000
committerGerd Moellmann2001-02-16 12:36:03 +0000
commit7728f17b18f1d6034931d3bf196d87aaca3084e7 (patch)
tree7811779546537cd7519436cdd6dc72dec62183ec /src
parente187cf71705683f5e16e3a8cd566751c91d64256 (diff)
downloademacs-7728f17b18f1d6034931d3bf196d87aaca3084e7.tar.gz
emacs-7728f17b18f1d6034931d3bf196d87aaca3084e7.zip
(direct_output_for_insert): Recognize more cases where
glyphs can be written instead of being inserted.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c5
1 files changed, 4 insertions, 1 deletions
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)
3584 { 3584 {
3585 rif->update_window_begin_hook (w); 3585 rif->update_window_begin_hook (w);
3586 3586
3587 if (glyphs == end - n) 3587 if (glyphs == end - n
3588 /* In front of a space added by append_space. */
3589 || (glyphs == end - n - 1
3590 && (end - n)->charpos <= 0))
3588 rif->write_glyphs (glyphs, n); 3591 rif->write_glyphs (glyphs, n);
3589 else 3592 else
3590 rif->insert_glyphs (glyphs, n); 3593 rif->insert_glyphs (glyphs, n);