Skip to content

Commit

Permalink
later delete it
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Mar 11, 2024
1 parent 245901b commit 595fcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sideline-flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ Argument COMMAND is required in sideline backend."

(defun sideline-flycheck--show (&optional buffer)
"Display ERRORS in BUFFER, using sideline library."
(sideline-delete-ovs 'sideline-flycheck)
(when-let ((sideline-mode)
(buffer (or buffer (current-buffer)))
((eq buffer (current-buffer)))
Expand All @@ -118,6 +117,7 @@ Argument COMMAND is required in sideline backend."
(unless (ht-contains-p sideline-flycheck--errors msg)
(ht-set sideline-flycheck--errors msg nil) ; doesn't care about value
(push msg msgs))))
(sideline-delete-ovs 'sideline-flycheck)
(funcall sideline-flycheck--callback msgs)
;; XXX: We need to set it to `nil', or else it will render multiple times.
(setq sideline-flycheck--callback nil))))
Expand Down

0 comments on commit 595fcc7

Please sign in to comment.