File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff 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 ))
You can’t perform that action at this time.
0 commit comments