From 64d3f03b8963d168920cde68cb22273d558bdfa3 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Tue, 24 Jun 2008 17:57:21 +0000 Subject: [PATCH] (direct_output_for_insert): Avoid direct output when inserting a space with word wrap on. --- src/dispnew.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5