aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJay Belanger <[email protected]>2005-01-10 16:54:15 +0000
committerJay Belanger <[email protected]>2005-01-10 16:54:15 +0000
commit24193b8ddfeffe9a8bfc8f6756e522061ce79dc0 (patch)
treec88e14e9999ab172b9ea8f2de1a6e1104e0e44f9 /lisp
parentdc91a0ed800ec66f7bdcdd67e59b8565fd52be45 (diff)
(calc-reset): Don't adjust the window height if the window takes up
the whole height of the frame.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/calc/calc-ext.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el
index 80e801ab2b..2806db82b1 100644
--- a/lisp/calc/calc-ext.el
+++ b/lisp/calc/calc-ext.el
@@ -1263,7 +1263,11 @@ calc-kill calc-kill-region calc-yank))))
(calc-wrapper
(let ((win (get-buffer-window (current-buffer))))
(calc-realign 0)
- (if win
+ ;; Adjust the window height if the window is visible, but doesn't
+ ;; take up the whole height of the frame.
+ (if (and
+ win
+ (< (window-height win) (1- (frame-height))))
(let ((height (- (window-height win) 2)))
(set-window-point win (point))
(or (= height calc-window-height)