[Top][All Lists]

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

[elpa] master dd112c8 027/110: avy.el (avy-goto-subword-1): Check char-a

From: Oleh Krehel
Subject: [elpa] master dd112c8 027/110: avy.el (avy-goto-subword-1): Check char-after
Date: Sat, 11 May 2019 10:15:37 -0400 (EDT)

branch: master
commit dd112c88e28e55ae955a2e93f75a6952880f6ec4
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    avy.el (avy-goto-subword-1): Check char-after
    When at `point-max', `char-after' returns nil. This can't be passed to 
    Fixes #163
 avy.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/avy.el b/avy.el
index a91d270..9a7c6a3 100644
--- a/avy.el
+++ b/avy.el
@@ -1174,7 +1174,9 @@ The case of CHAR is ignored."
   (avy-with avy-goto-subword-1
     (let ((char (downcase char)))
-       arg (lambda () (eq (downcase (char-after)) char))))))
+       arg (lambda ()
+             (and (char-after)
+                  (eq (downcase (char-after)) char)))))))
 (defun avy-goto-word-or-subword-1 ()

reply via email to

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