summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-yank.el
diff options
context:
space:
mode:
authorJay Belanger <jay.p.belanger@gmail.com>2005-04-27 04:35:16 +0000
committerJay Belanger <jay.p.belanger@gmail.com>2005-04-27 04:35:16 +0000
commita1ed7becaf6350155f62540381e529241fc09728 (patch)
treec1af5aa80108aba48edbea2d10f13b57dc61c7b3 /lisp/calc/calc-yank.el
parent6d42bedc277a4a603356d0ce3886f4169685848d (diff)
downloademacs-a1ed7becaf6350155f62540381e529241fc09728.tar.gz
(calc-edit-finish): Make sure there is more than one window before
deleting window.
Diffstat (limited to 'lisp/calc/calc-yank.el')
-rw-r--r--lisp/calc/calc-yank.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calc/calc-yank.el b/lisp/calc/calc-yank.el
index 339dfd838a4..c15724ccde7 100644
--- a/lisp/calc/calc-yank.el
+++ b/lisp/calc/calc-yank.el
@@ -528,7 +528,7 @@ To cancel the edit, simply kill the *Calc Edit* buffer."
(goto-char calc-edit-top)
(if (buffer-modified-p)
(eval calc-edit-handler))
- (if one-window
+ (if (and one-window (not (one-window-p t)))
(delete-window))
(if (get-buffer-window return)
(select-window (get-buffer-window return))