mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
avy.el (avy-goto-subword-1): Check char-after
When at `point-max', `char-after' returns nil. This can't be passed to `downcase'. Fixes #163
This commit is contained in:
parent
07153e4fb7
commit
dd112c88e2
4
avy.el
4
avy.el
@ -1174,7 +1174,9 @@ The case of CHAR is ignored."
|
|||||||
(avy-with avy-goto-subword-1
|
(avy-with avy-goto-subword-1
|
||||||
(let ((char (downcase char)))
|
(let ((char (downcase char)))
|
||||||
(avy-goto-subword-0
|
(avy-goto-subword-0
|
||||||
arg (lambda () (eq (downcase (char-after)) char))))))
|
arg (lambda ()
|
||||||
|
(and (char-after)
|
||||||
|
(eq (downcase (char-after)) char)))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun avy-goto-word-or-subword-1 ()
|
(defun avy-goto-word-or-subword-1 ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user