]> code.delx.au - gnu-emacs/commitdiff
(direct_output_for_insert): Avoid direct output when inserting a space
authorChong Yidong <cyd@stupidchicken.com>
Tue, 24 Jun 2008 17:57:21 +0000 (17:57 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 24 Jun 2008 17:57:21 +0000 (17:57 +0000)
with word wrap on.

src/dispnew.c

index f6f464d9eb3c4f9a6ef82b4b3c6c4f1f60407355..f182af77d3bba1116b9c9873af2b8c270e9c0e50 100644 (file)
@@ -3514,6 +3514,7 @@ direct_output_for_insert (g)
       || 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