Mercurial > emacs
changeset 33591:b501918e1c9d
(resize_mini_window): Temporarily change to the
mini-window's buffer if necessary.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sat, 18 Nov 2000 14:14:31 +0000 |
parents | 69c02e27fcb1 |
children | 7bcc17d19d53 |
files | src/xdisp.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sat Nov 18 13:44:47 2000 +0000 +++ b/src/xdisp.c Sat Nov 18 14:14:31 2000 +0000 @@ -6128,6 +6128,13 @@ int height, max_height; int unit = CANON_Y_UNIT (f); struct text_pos start; + struct buffer *old_current_buffer = NULL; + + if (current_buffer != XBUFFER (w->buffer)) + { + old_current_buffer = current_buffer; + set_buffer_internal (XBUFFER (w->buffer)); + } init_iterator (&it, w, BEGV, BEGV_BYTE, NULL, DEFAULT_FACE_ID); @@ -6215,6 +6222,9 @@ window_height_changed_p = XFASTINT (w->height) != old_height; } } + + if (old_current_buffer) + set_buffer_internal (old_current_buffer); } return window_height_changed_p;