Skip to content

Commit

Permalink
fix grep not work with rg 13.0.0
Browse files Browse the repository at this point in the history
Closes #121
  • Loading branch information
chemzqm committed Jun 15, 2021
1 parent c782b93 commit e70e744
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/grep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ChildProcess, spawn } from 'child_process'
import { BasicList, ListContext, ListItem, ListTask, Location, Neovim, Position, Range, workspace } from 'coc.nvim'
import { EventEmitter } from 'events'
import minimatch from 'minimatch'
import os from 'os'
import path from 'path'
import readline from 'readline'
import { URI } from 'vscode-uri'
Expand Down Expand Up @@ -166,9 +165,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
}
Expand Down

0 comments on commit e70e744

Please sign in to comment.