Skip to content

Commit

Permalink
bug: show echo when there's message
Browse files Browse the repository at this point in the history
  • Loading branch information
kiennq committed Mar 7, 2020
1 parent c0b37d0 commit 2348b9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mini-modeline.el
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ When ARG is:

(defun mini-modeline-msg ()
"Place holder to display echo area message."
(replace-regexp-in-string "%" "%%" mini-modeline--msg))
(when mini-modeline--msg
(replace-regexp-in-string "%" "%%" mini-modeline--msg)))

(defsubst mini-modeline--lr-render (left right)
"Render the LEFT and RIGHT part of mini-modeline."
Expand Down Expand Up @@ -317,7 +318,7 @@ BODY will be supplied with orig-func and args."
(redisplay)
(setq resize-mini-windows t)
;; (add-hook 'pre-redisplay-functions #'mini-modeline-display)
(setq mini-modeline--timer (run-with-timer 0 0.5 #'mini-modeline-display))
(setq mini-modeline--timer (run-with-timer 0 0.1 #'mini-modeline-display))
(when mini-modeline-enhance-visual
(add-hook 'minibuffer-setup-hook #'mini-modeline--set-buffer-background))
(advice-add #'message :around #'mini-modeline--reroute-msg)
Expand Down

0 comments on commit 2348b9f

Please sign in to comment.