fix(smooth-scroll): advice on wrong function

Amend: aa6f3903d5
Fix: #8376
This commit is contained in:
Henrik Lissner
2025-06-02 17:33:47 +02:00
parent 6ce4ba3d18
commit 313e8fb48b

View File

@ -35,7 +35,7 @@
;; Cue the errors. ;; Cue the errors.
;; REVIEW: This shold be fixed upstream. ;; REVIEW: This shold be fixed upstream.
(defadvice! +smooth-scroll--fix-out-of-bounds-error-a () (defadvice! +smooth-scroll--fix-out-of-bounds-error-a ()
:override #'good-scroll--point-at-top-fix-a :override #'good-scroll--point-at-top-p
(save-restriction (save-restriction
(widen) (widen)
(<= (line-number-at-pos (max (point) (point-min)) t) (<= (line-number-at-pos (max (point) (point-min)) t)