branch: master
commit f46cdad1463480dee47dc1879183240208a65c75
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    counsel.el (counsel-grep): Add :require-match
---
 counsel.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/counsel.el b/counsel.el
index 39385f0..1b7dc5b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3088,6 +3088,7 @@ When non-nil, INITIAL-INPUT is the initial search 
pattern."
          (setq res (ivy-read "grep: " #'counsel-grep-function
                              :initial-input initial-input
                              :dynamic-collection t
+                             :require-match t
                              :preselect
                              (when (< (- (line-end-position) 
(line-beginning-position)) 300)
                                (format "%d:%s"

Reply via email to