From: Eli Zaretskii Date: Thu, 18 Sep 2014 15:10:33 +0000 (+0300) Subject: Fix bug #18490 with redisplay of other windows showing a narrowed buffer. X-Git-Tag: emacs-24.3.94~28 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a810675374498ff80464e48eeeb39f1854ef37bd;p=emacs.git Fix bug #18490 with redisplay of other windows showing a narrowed buffer. src/xdisp.c (redisplay_internal): Force redisplay of all windows that show a buffer whose narrowing has changed. --- diff --git a/src/ChangeLog b/src/ChangeLog index c86f6de1575..880f49e3e89 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-09-18 Eli Zaretskii + + * xdisp.c (redisplay_internal): Force redisplay of all windows + that show a buffer whose narrowing has changed. (Bug#18490) + 2014-09-16 Eli Zaretskii * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor): diff --git a/src/xdisp.c b/src/xdisp.c index 909349b81b3..754862d59d1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -13598,6 +13598,12 @@ redisplay_internal (void) if (mode_line_update_needed (w)) w->update_mode_line = 1; + + /* If reconsider_clip_changes above decided that the narrowing + in the current buffer changed, make sure all other windows + showing that buffer will be redisplayed. */ + if (current_buffer->clip_changed) + bset_update_mode_line (current_buffer); } /* Normally the message* functions will have already displayed and