Skip to content

Commit 8d65312

Browse files
committed
Fix compatibility with smooth-scrolling-mode
1 parent 886c351 commit 8d65312

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

evil-easymotion.el

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@
110110
(defun evilem--collect (func &optional scope all-windows initial-point)
111111
"Repeatedly execute func, and collect the cursor positions into a list"
112112
(if (functionp func)
113-
(let ((points)
114-
(point)
115-
(avy-all-windows all-windows)
116-
;; make sure the motion doesn't move the window
117-
(scroll-conservatively 101)
118-
(smooth-scroll-margin 0)
119-
(scroll-margin 0))
113+
(cl-letf ((points nil)
114+
(point nil)
115+
(avy-all-windows all-windows)
116+
;; make sure the motion doesn't move the window
117+
(scroll-conservatively 101)
118+
(smooth-scrolling-mode nil)
119+
(scroll-margin 0))
120120
(avy-dowindows current-prefix-arg
121121
(save-excursion
122122
(save-restriction

0 commit comments

Comments
 (0)