Skip to content

Commit

Permalink
Fix code for cancelling timer as mentioned in #53 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersjohansson authored Nov 30, 2021
1 parent fb2fc86 commit 7ec1ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mini-modeline.el
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ BODY will be supplied with orig-func and args."
(redisplay)
;; (remove-hook 'post-command-hook #'mini-modeline-display)
;; (remove-hook 'pre-redisplay-functions #'mini-modeline-display)
(when (timerp (cancel-timer mini-modeline--timer)))
(when (timerp mini-modeline--timer) (cancel-timer mini-modeline--timer))
(mini-modeline-display 'clear)
(advice-remove #'message #'mini-modeline--reroute-msg)

Expand Down

0 comments on commit 7ec1ec0

Please sign in to comment.