]> code.delx.au - gnu-emacs-elpa/commitdiff
Add case fold search to avy-goto-char-timer
authorOrionU <OrionU@home.com>
Wed, 6 Jan 2016 00:15:23 +0000 (18:15 -0600)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 6 Jan 2016 08:31:19 +0000 (09:31 +0100)
Fixes #128

avy.el

diff --git a/avy.el b/avy.el
index 26a3cbc0d6e989d121cee071b8f489c80b0d5a9b..a6e4c0b1371c89a019a28a589194098ee51adb7c 100644 (file)
--- a/avy.el
+++ b/avy.el
@@ -1235,7 +1235,9 @@ This function obeys `avy-all-windows' setting."
                 (setq str (concat str (list char)))))
              ;; Highlight
              (when (>= (length str) 1)
-               (let (found)
+               (let ((case-fold-search
+                      (or avy-case-fold-search (string= str (downcase str))))
+                     found)
                  (avy-dowindows current-prefix-arg
                    (dolist (pair (avy--find-visible-regions
                                   (window-start)