aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2001-02-16 12:36:03 +0000
committerGerd Moellmann <[email protected]>2001-02-16 12:36:03 +0000
commit7728f17b18f1d6034931d3bf196d87aaca3084e7 (patch)
tree7811779546537cd7519436cdd6dc72dec62183ec /src/dispnew.c
parente187cf71705683f5e16e3a8cd566751c91d64256 (diff)
(direct_output_for_insert): Recognize more cases where
glyphs can be written instead of being inserted.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 04532d486d..337e3c9264 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);