We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fd8a04 commit bc53e19Copy full SHA for bc53e19
auto-scroll-bar.el
@@ -168,9 +168,9 @@ Optional argument FRAME is used to select frame's minibuffer."
168
169
(defun auto-scroll-bar--after-change (&rest _)
170
"After change hook."
171
- (if (eq (minibuffer-window) (selected-window))
172
- (auto-scroll-bar--hide-minibuffer)
173
- (auto-scroll-bar--scroll (selected-window))))
+ (when-let ((current (selected-window)))
+ (if (equal (minibuffer-window) current) (auto-scroll-bar--hide-minibuffer)
+ (auto-scroll-bar--scroll current))))
174
175
(defun auto-scroll-bar--enable ()
176
"Enable function `auto-scroll-bar-mode'."
0 commit comments