]> code.delx.au - gnu-emacs-elpa/commitdiff
avy.el (avy--regex-candidates): Modify case-fold-search condition
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 5 Jan 2016 10:45:04 +0000 (11:45 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 5 Jan 2016 10:45:04 +0000 (11:45 +0100)
Fixes #126

avy.el

diff --git a/avy.el b/avy.el
index 3cffb733ae373eaf6d09e0f366b7c45cdfd34bfe..26a3cbc0d6e989d121cee071b8f489c80b0d5a9b 100644 (file)
--- a/avy.el
+++ b/avy.el
@@ -595,7 +595,7 @@ When PRED is non-nil, it's a filter for matching point positions.
 When GROUP is non-nil, (BEG . END) should delimit that regex group."
   (setq group (or group 0))
   (let ((case-fold-search (or avy-case-fold-search
-                              (not (string= regex (upcase regex)))))
+                              (string= regex (downcase regex))))
         candidates)
     (avy-dowindows current-prefix-arg
       (dolist (pair (avy--find-visible-regions