Skip to content

Commit

Permalink
Fix code for cancelling timer as mentioned in kiennq#53
Browse files Browse the repository at this point in the history
  • Loading branch information
andersjohansson committed Nov 29, 2021
1 parent fb2fc86 commit 684140a
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 684140a

Please sign in to comment.