Skip to content

Commit e3f2434

Browse files
committed
perf: Render only the current buffer
1 parent 2dc3773 commit e3f2434

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

auto-scroll-bar.el

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,6 @@ Optional argument FRAME is used to select frame's minibuffer."
195195
(elenv-with-no-redisplay
196196
(auto-scroll-bar--show-hide window)))
197197

198-
(defun auto-scroll-bar--pre-command (&rest _)
199-
"Hook for pre command."
200-
(set-window-parameter nil 'window-end nil))
201-
202198
;; XXX: Only for horizontal scroll.
203199
;;
204200
;; The hook `window-scroll-functions' doesn't get called on horizontal scroll.
@@ -211,7 +207,6 @@ Optional argument FRAME is used to select frame's minibuffer."
211207
(cond ((display-graphic-p)
212208
(add-hook 'window-size-change-functions #'auto-scroll-bar--size-change 90)
213209
(add-hook 'window-scroll-functions #'auto-scroll-bar--scroll 90)
214-
(add-hook 'pre-command-hook #'auto-scroll-bar--pre-command 90)
215210
(add-hook 'post-command-hook #'auto-scroll-bar--post-command 90)
216211
(toggle-scroll-bar 1)
217212
(when auto-scroll-bar-horizontal (toggle-horizontal-scroll-bar 1))
@@ -222,7 +217,6 @@ Optional argument FRAME is used to select frame's minibuffer."
222217
"Disable function `auto-scroll-bar-mode'."
223218
(remove-hook 'window-size-change-functions #'auto-scroll-bar--size-change)
224219
(remove-hook 'window-scroll-functions #'auto-scroll-bar--scroll)
225-
(remove-hook 'pre-command-hook #'auto-scroll-bar--pre-command)
226220
(remove-hook 'post-command-hook #'auto-scroll-bar--post-command)
227221
(toggle-scroll-bar -1)
228222
(toggle-horizontal-scroll-bar -1))

0 commit comments

Comments
 (0)