branch: externals/avy commit f9c15c573cf6e939e7e1524e79c06ed2144006b4 Author: Daniel H. Leidisch <daniel.leidi...@inexio.net> Commit: Daniel H. Leidisch <daniel.leidi...@inexio.net>
Fix subword commands with custom order. --- avy.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/avy.el b/avy.el index 8f76e293d1..90411df8d4 100644 --- a/avy.el +++ b/avy.el @@ -1540,13 +1540,15 @@ BEG and END narrow the scope where candidates are searched." (when (or (null predicate) (and predicate (funcall predicate))) (unless (not (avy--visible-p (point))) - (push (cons (point) (selected-window)) window-cands))) + (push (cons (cons (point) (1+ (point))) + (selected-window)) window-cands))) (subword-backward)) (and (= (point) ws) (or (null predicate) (and predicate (funcall predicate))) (not (get-char-property (point) 'invisible)) - (push (cons (point) (selected-window)) window-cands))) + (push (cons (cons (point) (1+ (point))) + (selected-window)) window-cands))) (setq candidates (nconc candidates window-cands)))))) (avy-process candidates))))