Skip to content

Commit

Permalink
perf: Render only the current buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jul 15, 2024
1 parent 6a46bee commit a6b4dae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions line-reminder.el
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,11 @@ and END."
`(,sign . ,(line-reminder--thumb-create-ov face))))))
line-reminder--line-status)))))))

(defun line-reminder--thumb-size-change (&optional frame &rest _)
(defun line-reminder--thumb-size-change (&optional _frame &rest _)
"Render thumbnail for all visible windows in FRAME."
(line-reminder--with-no-redisplay
(dolist (win (window-list frame)) (line-reminder--thumb-render-window win))))
(dolist (win (get-buffer-window-list))
(line-reminder--thumb-render-window win))))

(defun line-reminder--thumb-scroll (&optional window &rest _)
"Render thumbnail on WINDOW."
Expand Down

0 comments on commit a6b4dae

Please sign in to comment.