Skip to content

Commit 2dc3773

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

auto-scroll-bar.el

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ and SHOW-H."
163163
(with-selected-window win
164164
(if (auto-scroll-bar--disabled-p)
165165
(auto-scroll-bar--update win nil nil)
166-
(let* ((wend (or (window-parameter nil 'window-end)
167-
(set-window-parameter nil 'window-end
168-
(window-end nil t))))
166+
(let* ((wend (window-end nil t))
169167
(wstart (window-start))
170168
(show-v (auto-scroll-bar--show-v-p wstart wend))
171169
(show-h (auto-scroll-bar--show-h-p wstart wend)))
@@ -189,7 +187,7 @@ Optional argument FRAME is used to select frame's minibuffer."
189187
(defun auto-scroll-bar--size-change (&optional frame &rest _)
190188
"Show/Hide all visible windows in FRAME."
191189
(elenv-with-no-redisplay
192-
(dolist (win (window-list frame))
190+
(dolist (win (get-buffer-window-list))
193191
(auto-scroll-bar--show-hide win))))
194192

195193
(defun auto-scroll-bar--scroll (&optional window &rest _)

0 commit comments

Comments
 (0)