Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: evilem motion forward word end stopping at single letters #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions evil-easymotion.el
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@
;; make sure the motion doesn't move the window
(scroll-conservatively 101)
(smooth-scrolling-mode nil)
(scroll-margin 0))
(scroll-margin 0)
(evil-state 'normal))
(if (functionp func)
(avy-dowindows current-prefix-arg
(save-excursion
Expand Down Expand Up @@ -184,10 +185,12 @@

(eval-and-compile
(defun evilem--compute-inclusivity (funcs)
(when (and (= (length funcs) 1)
(evil-has-command-properties-p (car funcs)))
`(setq evil-this-type
',(evil-get-command-property (car funcs) :type)))))
(cond ((symbolp funcs) `(setq evil-this-type
',(evil-get-command-property funcs :type)))

((and (listp funcs) (= (length funcs) 1)) (evilem--compute-inclusivity (car funcs)))

((and (listp funcs) (= (length funcs) 2) (eq (car funcs) 'function)) (evilem--compute-inclusivity (cdr funcs))))))

(cl-defmacro evilem-make-motion (name
funcs
Expand Down