From 04b577b61c0d1c3c73d6e1aafd7c2892a1414727 Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Sat, 1 Mar 2014 12:11:13 +0100 Subject: [PATCH] Fix size calculation in window--max-delta-1. * window.el (window--max-delta-1): Round down when calculating how many lines/columns we can get from a window. --- lisp/ChangeLog | 5 +++++ lisp/window.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 82157a45209..d3419412ebe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-03-01 Martin Rudalics + + * window.el (window--max-delta-1): Round down when calculating + how many lines/columns we can get from a window. + 2014-03-01 Glenn Morris * isearch.el (search-invisible): Doc fix. diff --git a/lisp/window.el b/lisp/window.el index e51c54012af..be56f8dd694 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -1470,7 +1470,7 @@ by which WINDOW can be shrunk." (setq delta (+ delta (max - (- (window-size sub horizontal pixelwise 'ceiling) + (- (window-size sub horizontal pixelwise 'floor) (window-min-size sub horizontal ignore pixelwise)) 0))))) -- 2.39.2