Skip to content

Commit

Permalink
Enesure max line valid value
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 4, 2022
1 parent ff58ace commit cd60583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions line-reminder.el
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ Arguments BEG and END are passed in by before/after change functions."

(defun line-reminder--remove-lines-out-range ()
"Remove all lines outside of buffer."
(let ((max-line line-reminder--cache-max-line))
(when line-reminder--cache-max-line
(ht-map (lambda (line _value)
(when (or (< max-line line) (<= line 0))
(when (or (< line-reminder--cache-max-line line) (<= line 0))
(line-reminder--remove-change-line line)))
line-reminder--line-status)))

Expand Down

0 comments on commit cd60583

Please sign in to comment.