diff options
author | Gerd Moellmann <[email protected]> | 2001-02-16 12:36:03 +0000 |
---|---|---|
committer | Gerd Moellmann <[email protected]> | 2001-02-16 12:36:03 +0000 |
commit | 7728f17b18f1d6034931d3bf196d87aaca3084e7 (patch) | |
tree | 7811779546537cd7519436cdd6dc72dec62183ec /src/dispnew.c | |
parent | e187cf71705683f5e16e3a8cd566751c91d64256 (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.c | 5 |
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); |