emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 85a384a 012/110: Add char at window start for avy-goto-sub


From: Oleh Krehel
Subject: [elpa] master 85a384a 012/110: Add char at window start for avy-goto-subword-0
Date: Sat, 11 May 2019 10:15:34 -0400 (EDT)

branch: master
commit 85a384a151118283296036002f022e59e63118e3
Author: Junpeng Qiu <address@hidden>
Commit: Junpeng Qiu <address@hidden>

    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)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]