Skip to content

Commit

Permalink
fix: Avoid nil status on delay time
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed May 30, 2024
1 parent 8e2f36e commit 11f34ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sideline-flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ Argument COMMAND is required in sideline backend."
(when (sideline-flycheck--get-errors)
(when (timerp sideline-flycheck--timer) (cancel-timer sideline-flycheck--timer))
(setq sideline-flycheck--timer
(run-at-time flycheck-display-errors-delay nil
(run-at-time (or flycheck-display-errors-delay
(default-value 'flycheck-display-errors-delay))
nil
#'sideline-flycheck--show (current-buffer)))))

(defun sideline-flycheck--reset ()
Expand Down

0 comments on commit 11f34ab

Please sign in to comment.