2000-11-18 Gerd Moellmann <gerd@gnu.org>
+ * xdisp.c (resize_mini_window): Change to the mini-window's
+ buffer if necessary.
+
* xfns.c (Fx_show_tip): Use default y-offset of -10 so that
the tooltip obscures less text under it.
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);
window_height_changed_p = XFASTINT (w->height) != old_height;
}
}
+
+ if (old_current_buffer)
+ set_buffer_internal (old_current_buffer);
}
return window_height_changed_p;