From a1ed7becaf6350155f62540381e529241fc09728 Mon Sep 17 00:00:00 2001 From: Jay Belanger Date: Wed, 27 Apr 2005 04:35:16 +0000 Subject: [PATCH] (calc-edit-finish): Make sure there is more than one window before deleting window. --- lisp/calc/calc-yank.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2