Commit 7728f17b authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(direct_output_for_insert): Recognize more cases where

glyphs can be written instead of being inserted.
parent e187cf71
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment