Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rg 13.0.0 breaks CocList grep in nvim #121

Closed
fannheyward opened this issue Jun 15, 2021 · 1 comment
Closed

rg 13.0.0 breaks CocList grep in nvim #121

fannheyward opened this issue Jun 15, 2021 · 1 comment

Comments

@fannheyward
Copy link
Member

@fannheyward
Copy link
Member Author

diff --git a/src/grep.ts b/src/grep.ts
index cfba48c..8f59df8 100644
--- a/src/grep.ts
+++ b/src/grep.ts
@@ -166,9 +166,7 @@ Grep source provide some uniformed options to ease differences between rg and ag
       args = convertOptions(args, cmd, useLiteral)
       args = args.filter(s => ['-F', '-folder', '-W', '-workspace'].indexOf(s) == -1)
     }
-    if (os.platform() == 'win32') {
-      args.push('--', './')
-    }
+    args.push('--', './')
     task.start(cmd, args, cwds, patterns)
     return task
   }

This makes it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant