changeset 96236:8a7483c32b73

(direct_output_for_insert): Avoid direct output when inserting a space with word wrap on.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 24 Jun 2008 17:57:21 +0000
parents 659365240213
children 9687aec12c3f
files src/dispnew.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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