branch: master
commit 85a384a151118283296036002f022e59e63118e3
Author: Junpeng Qiu <[email protected]>
Commit: Junpeng Qiu <[email protected]>
Add char at window start for avy-goto-subword-0
---
avy.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/avy.el b/avy.el
index d3d9d50..496dfd5 100644
--- a/avy.el
+++ b/avy.el
@@ -1049,7 +1049,12 @@ should return true."
(and predicate (funcall predicate)))
(unless (get-char-property (point) 'invisible)
(push (cons (point) (selected-window)) window-cands)))
- (subword-backward)))
+ (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)))
(setq candidates (nconc candidates window-cands))))))
(avy--process candidates (avy--style-fn avy-style)))))