branch: master
commit 1107875860a6cfd51d5336aed2b8262acdd85244
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    counsel.el (counsel-ag-occur): Fix quoting
    
    Fixes #1240
---
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 8eb67e8..fa3af4b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2113,7 +2113,7 @@ AG-PROMPT, if non-nil, is passed as `ivy-read' prompt 
argument."
 (defun counsel-ag-occur ()
   "Generate a custom occur buffer for `counsel-ag'."
   (counsel-grep-like-occur
-   "ag --nocolor --nogroup %s"))
+   "ag --nocolor --nogroup \"%s\""))
 
 ;;** `counsel-pt'
 (defcustom counsel-pt-base-command "pt --nocolor --nogroup -e %s"

Reply via email to