emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r116009: Fix bug when resizing mini window (Bug#1642


From: Martin Rudalics
Subject: [Emacs-diffs] trunk r116009: Fix bug when resizing mini window (Bug#16424).
Date: Mon, 13 Jan 2014 11:30:50 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116009
revision-id: address@hidden
parent: address@hidden
committer: martin rudalics <address@hidden>
branch nick: trunk
timestamp: Mon 2014-01-13 12:30:30 +0100
message:
  Fix bug when resizing mini window (Bug#16424).
  
  * xdisp.c (resize_mini_window): Round height to a multiple of
  frame's line height.  Fix bug in calculation of window start
  position (Bug#16424).
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/xdisp.c                    xdisp.c-20091113204419-o5vbwnq5f7feedwu-240
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-01-13 10:32:48 +0000
+++ b/src/ChangeLog     2014-01-13 11:30:30 +0000
@@ -1,3 +1,9 @@
+2014-01-13  Martin Rudalics  <address@hidden>
+
+       * xdisp.c (resize_mini_window): Round height to a multiple of
+       frame's line height.  Fix bug in calculation of window start
+       position (Bug#16424).
+
 2014-01-13  Jan Djärv  <address@hidden>
 
        * macfont.m: Include termchar.h.

=== modified file 'src/xdisp.c'
--- a/src/xdisp.c       2014-01-11 11:54:08 +0000
+++ b/src/xdisp.c       2014-01-13 11:30:30 +0000
@@ -10658,9 +10658,9 @@
       /* Compute a suitable window start.  */
       if (height > max_height)
        {
-         height = max_height;
+         height = (max_height / unit) * unit;
          init_iterator (&it, w, ZV, ZV_BYTE, NULL, DEFAULT_FACE_ID);
-         move_it_vertically_backward (&it, height);
+         move_it_vertically_backward (&it, height - unit);
          start = it.current.pos;
        }
       else


reply via email to

[Prev in Thread] Current Thread [Next in Thread]