[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 327dbd6 058/184: counsel.el (counsel-rg-base-command): Don

From: Oleh Krehel
Subject: [elpa] master 327dbd6 058/184: counsel.el (counsel-rg-base-command): Don't include directory on non-Windows
Date: Wed, 16 Oct 2019 13:14:48 -0400 (EDT)

branch: master
commit 327dbd6a90e1e682b71f093d53c9332f1c3d01be
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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' 
 ;;** `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

[Prev in Thread] Current Thread [Next in Thread]