]> code.delx.au - gnu-emacs-elpa/commitdiff
counsel.el: Reduce counsel-grep char req to 2
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 25 Mar 2016 21:06:57 +0000 (22:06 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 25 Mar 2016 21:06:57 +0000 (22:06 +0100)
counsel.el

index f6565c882c3b4cf808d28f91f310f957768ce316..f2607a40b036158258c63c062d0e860d905be3b9 100644 (file)
@@ -1351,8 +1351,8 @@ This uses `counsel-ag' with `counsel-pt-base-command' replacing
 ;;** `counsel-grep'
 (defun counsel-grep-function (string)
   "Grep in the current directory for STRING."
-  (if (< (length string) 3)
-      (counsel-more-chars 3)
+  (if (< (length string) 2)
+      (counsel-more-chars 2)
     (let ((regex (counsel-unquote-regex-parens
                   (setq ivy--old-re
                         (ivy--regex string)))))