branch: master commit dd112c88e28e55ae955a2e93f75a6952880f6ec4 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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 --- 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))) (avy-goto-subword-0 - arg (lambda () (eq (downcase (char-after)) char)))))) + arg (lambda () + (and (char-after) + (eq (downcase (char-after)) char))))))) ;;;###autoload (defun avy-goto-word-or-subword-1 ()