# HG changeset patch # User Chong Yidong # Date 1214330241 0 # Node ID 8a7483c32b73612a2b44508b40bda3f2f4ff49fb # Parent 659365240213fce951fd172c8999a34bbfef4608 (direct_output_for_insert): Avoid direct output when inserting a space with word wrap on. diff -r 659365240213 -r 8a7483c32b73 src/dispnew.c --- a/src/dispnew.c Tue Jun 24 17:57:02 2008 +0000 +++ b/src/dispnew.c Tue Jun 24 17:57:21 2008 +0000 @@ -3514,6 +3514,7 @@ || g == '\t' || g == '\n' || g == '\r' + || (g == ' ' && !NILP (current_buffer->word_wrap)) /* Give up if unable to display the cursor in the window. */ || w->cursor.vpos < 0 /* Give up if we are showing a message or just cleared the message