From 5c04d4c7e927900cb4ffc884190bbb3c5b5442ce Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 17 Mar 2021 23:17:59 +0000 Subject: compat for jao-minibuffer --- lib/eos/jao-minibuffer.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/eos') 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 " ")))) -- cgit v1.2.3