Skip to content

Commit

Permalink
fix: Delay render for after change hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Oct 30, 2023
1 parent 9e60c92 commit 1835ea7
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 @@ -215,7 +215,7 @@ See macro `with-selected-window' description for arguments WINDOW and BODY."
(while (and (<= (point) wend) (not break))
(when-let ((sign (ht-get line-reminder--line-status line))
((if (functionp line-reminder-add-line-function)
(funcall line-reminder-add-line-function)
(funcall line-reminder-add-line-function line)
t)))
(funcall callback line sign))
(cl-incf line) ; This saves up a lot of performance!
Expand Down Expand Up @@ -379,7 +379,7 @@ Argument LINE is passed in by `linum-format' variable."
(`indicators )) ; XXX: Nothing to do here.
(ht-clear line-reminder--line-status)
(add-hook 'before-change-functions #'line-reminder--before-change nil t)
(add-hook 'after-change-functions #'line-reminder--after-change nil t)
(add-hook 'after-change-functions #'line-reminder--after-change 95 t)
(add-hook 'post-command-hook #'line-reminder--undo-post-command nil t)
;; XXX: We add advice to `save-buffer', but we never need to remove it since
;; we have checked `line-reminder-mode' inside `line-reminder--save-buffer'
Expand Down

0 comments on commit 1835ea7

Please sign in to comment.