Skip to content

Commit

Permalink
don't wash away message not displayed by flycheck
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Dec 15, 2022
1 parent b320004 commit ddbd8e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -5615,7 +5615,8 @@ Hide the error buffer if there is no error under point."
(defun flycheck-clear-displayed-error-messages ()
"Clear error messages displayed by `flycheck-display-error-messages'."
(unless (null flycheck--last-displayed-message)
(if (stringp flycheck--last-displayed-message)
(if (and (stringp flycheck--last-displayed-message)
(equal (current-message) flycheck--last-displayed-message))
(message nil)
(flycheck-hide-error-buffer))))

Expand Down

0 comments on commit ddbd8e3

Please sign in to comment.