From: Chong Yidong Date: Tue, 24 Jun 2008 17:57:21 +0000 (+0000) Subject: (direct_output_for_insert): Avoid direct output when inserting a space X-Git-Tag: emacs-pretest-23.0.90~4543 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=64d3f03b8963d168920cde68cb22273d558bdfa3;p=emacs.git (direct_output_for_insert): Avoid direct output when inserting a space with word wrap on. --- diff --git a/src/dispnew.c b/src/dispnew.c index f6f464d9eb3..f182af77d3b 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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