Commit 6e49a66a authored by Martin Rudalics's avatar Martin Rudalics
Browse files

In Fresize_mini_window_internal set w->total_lines from w->pixel_height (Bug#18422).

* window.c (Fresize_mini_window_internal): Set w->total_lines
from w->pixel_height (Bug#18422).
parent 2776a650
2014-09-11 Martin Rudalics <rudalics@gmx.at>
* window.c (Fresize_mini_window_internal): Set w->total_lines
from w->pixel_height (Bug#18422).
2014-09-09 Jan Djärv <jan.h.d@swipnet.se> 2014-09-09 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (updateFrameSize:, initFrameFromEmacs:) * nsterm.m (updateFrameSize:, initFrameFromEmacs:)
......
...@@ -4804,10 +4804,10 @@ DEFUN ("resize-mini-window-internal", Fresize_mini_window_internal, Sresize_mini ...@@ -4804,10 +4804,10 @@ DEFUN ("resize-mini-window-internal", Fresize_mini_window_internal, Sresize_mini
block_input (); block_input ();
window_resize_apply (r, 0); window_resize_apply (r, 0);
w->total_lines = XFASTINT (w->new_total);
w->top_line = r->top_line + r->total_lines;
w->pixel_height = XFASTINT (w->new_pixel); w->pixel_height = XFASTINT (w->new_pixel);
w->total_lines = w->pixel_height / FRAME_LINE_HEIGHT (f);
w->pixel_top = r->pixel_top + r->pixel_height; w->pixel_top = r->pixel_top + r->pixel_height;
w->top_line = r->top_line + r->total_lines;
fset_redisplay (f); fset_redisplay (f);
FRAME_WINDOW_SIZES_CHANGED (f) = 1; FRAME_WINDOW_SIZES_CHANGED (f) = 1;
......
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