diff options
-rw-r--r-- | lib/eos/jao-minibuffer.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el index 777980e..263f917 100644 --- a/lib/eos/jao-minibuffer.el +++ b/lib/eos/jao-minibuffer.el @@ -74,7 +74,7 @@ (if (> w 0) (jao-minibuffer--trim msg w) ""))))) (defun jao-minibuffer--set-message (msg) - (if current-minibuffer-command + (if (bound-and-true-p current-minibuffer-command) msg (let* ((msg (string-trim (replace-regexp-in-string "\n" " " msg))) (msg (if (string-blank-p msg) msg (concat msg " ")))) |