Skip to content

Commit 1f27031

Browse files
committed
Use evil-define-command for cross-window motions
1 parent 9ebd0db commit 1f27031

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

evil-easymotion.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@
149149
(cl-defmacro evilem-make-motion (name funcs &key pre-hook post-hook bind scope
150150
all-windows)
151151
"Automatically define an evil easymotion for `func', naming it `name'"
152-
`(evil-define-motion ,name (_count)
152+
`(,(if all-windows
153+
'evil-define-command
154+
'evil-define-motion)
155+
,name (&optional _count)
153156
(evil-without-repeat
154157
(setq evil-this-type 'inclusive)
155158
(cl-letf* ,bind

0 commit comments

Comments
 (0)