aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);