aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/calc/calc.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/calc/calc.el')
-rw-r--r--lisp/calc/calc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index d49e2bd2aa..4c6375b118 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -1431,7 +1431,7 @@ commands given here will actually operate on the *Calculator* stack."
(setq calc-window-height (- (window-height win) 2)))
(progn
(delete-windows-on buf)
- (delete-windows-on kbuf))
+ (and kbuf (delete-windows-on kbuf)))
(bury-buffer buf)
(bury-buffer calc-trail-buffer)
(and kbuf (bury-buffer kbuf))))))