Commit 8d77c0c8 authored by Karl Heuer's avatar Karl Heuer

(Fdisplay_buffer): Make old_selected_window a Lisp_Object.

parent bf7d4561
......@@ -1988,9 +1988,10 @@ Returns the window displaying BUFFER.")
&& XWINDOW (other)->height > XWINDOW (window)->height)
{
int total = XWINDOW (other)->height + XWINDOW (window)->height;
struct window *old_selected_window = selected_window;
Lisp_Object old_selected_window;
old_selected_window = selected_window;
selected_window = XWINDOW (upper);
selected_window = upper;
change_window_height (total / 2 - XWINDOW (upper)->height, 0);
selected_window = old_selected_window;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment