In display-buffer-use-some-window don't shrink window used (Bug#17671).
authorMartin Rudalics <rudalics@gmx.at>
Tue, 3 Jun 2014 12:38:17 +0000 (14:38 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 3 Jun 2014 12:38:17 +0000 (14:38 +0200)
* window.el (display-buffer-use-some-window): Don't make window
used smaller than it was before (Bug#17671).

lisp/ChangeLog
lisp/window.el

index 2ca78ad..6bb2147 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-03  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (display-buffer-use-some-window): Don't make window
+       used smaller than it was before (Bug#17671).
+
 2014-06-03  Eli Zaretskii  <eliz@gnu.org>
 
        * menu-bar.el (menu-bar-open): Fix last change: use the PC
index c5093ca..e9f4fd0 100644 (file)
@@ -6497,7 +6497,7 @@ that frame."
       ;; resize it to its old height but don't signal an error.
       (when (and (listp quad)
                 (integerp (nth 3 quad))
-                (/= (nth 3 quad) (window-total-height window)))
+                (> (nth 3 quad) (window-total-height window)))
        (condition-case nil
            (window-resize window (- (nth 3 quad) (window-total-height window)))
          (error nil)))