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
master
Oleh Krehel 10 years ago
parent 07153e4fb7
commit dd112c88e2
  1. 4
      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 ()

Loading…
Cancel
Save