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

    counsel.el (counsel-rg-base-command): Don't include directory on non-Windows
    
    Fixes #2180
    Re #795
---
 counsel.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 5bd149a..5442862 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2853,7 +2853,10 @@ This uses `counsel-ag' with `counsel-ack-base-command' 
replacing
 
 
 ;;** `counsel-rg'
-(defcustom counsel-rg-base-command "rg -S --no-heading --line-number --color 
never %s ."
+(defcustom counsel-rg-base-command
+  (if (memq system-type '(ms-dos windows-nt))
+      "rg -S --no-heading --line-number --color never %s ."
+    "rg -S --no-heading --line-number --color never %s")
   "Alternative to `counsel-ag-base-command' using ripgrep.
 
 Note: don't use single quotes for the regex."

Reply via email to