branch: elpa/scroll-on-jump
commit 556e9a7a8119e24503f54b25f5c2a8084752d64d
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Fix error detecting scroll changes
(scroll-on-jump-with-scroll-advice-add evil-scroll-line-to-center)
for example wasn't working properly.
Now this works as expected.
---
scroll-on-jump.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scroll-on-jump.el b/scroll-on-jump.el
index 4067965bc3..3e5245c005 100644
--- a/scroll-on-jump.el
+++ b/scroll-on-jump.el
@@ -483,7 +483,7 @@ Argument USE-WINDOW-START detects window scrolling when
non-nil."
;; So don't prioritize correct jumping in the case of errors and
assume errors
;; are not something that happen after cursor motion.
(scroll-on-jump--outer-scoped-mark point-orig point-prev
- (scroll-on-jump--outer-scoped-mark (window-start window)
window-start-prev
+ (scroll-on-jump--inner-scoped-mark (window-start window)
window-start-prev
(scroll-on-jump--inner-scoped-mark point-orig point-next
;; Run the main body of this macro.
;; It's important the result if returned (hence the `prog1' use).