diff options
-rw-r--r-- | elisp/geiser-debug.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser-debug.el b/elisp/geiser-debug.el index cfa193c..fa30506 100644 --- a/elisp/geiser-debug.el +++ b/elisp/geiser-debug.el @@ -74,7 +74,8 @@ non-null value.") (when err (insert (geiser-eval--error-str err) "\n\n")) (when output (insert output "\n\n"))) (goto-char (point-min))) - (when err (geiser-debug--pop-to-buffer))))) + (when (or err (and output (> (length output) 0))) + (geiser-debug--pop-to-buffer))))) (defsubst geiser-debug--wrap-region (str) (format "(begin %s)" str)) |