]> git.eshelyaron.com Git - emacs.git/commitdiff
In Fresize_mini_window_internal set w->total_lines from w->pixel_height (Bug#18422).
authorMartin Rudalics <rudalics@gmx.at>
Thu, 11 Sep 2014 08:47:34 +0000 (10:47 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Thu, 11 Sep 2014 08:47:34 +0000 (10:47 +0200)
* window.c (Fresize_mini_window_internal): Set w->total_lines
from w->pixel_height (Bug#18422).

src/ChangeLog
src/window.c

index fc1f1af853b3bae70d1d7a86a69fe9017c3e836b..0117b83feb137eef52692573a18c6610cf1c70a6 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * nsterm.m (updateFrameSize:, initFrameFromEmacs:)
index 3fefd9ce68292d1b126c66466daa54de7604cd8f..7e50282a39b8bb0bb96db11d6d198af5473616ab 100644 (file)
@@ -4804,10 +4804,10 @@ DEFUN ("resize-mini-window-internal", Fresize_mini_window_internal, Sresize_mini
       block_input ();
       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->total_lines = w->pixel_height / FRAME_LINE_HEIGHT (f);
       w->pixel_top = r->pixel_top + r->pixel_height;
+      w->top_line = r->top_line + r->total_lines;
 
       fset_redisplay (f);
       FRAME_WINDOW_SIZES_CHANGED (f) = 1;