Skip to content

Commit

Permalink
fix(flygrep): use current directory when none specified for ripgrep. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kayleg committed Aug 19, 2021
1 parent 1e4cb1f commit d9524d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/SpaceVim/plugins/flygrep.vim
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function! s:get_search_cmd(expr) abort
" if grep dir is empty, grep files is empty, which means searhing in
" current directory.
let cmd += [a:expr]
" in window, when using rg, ag, need to add '.' at the end.
if s:SYS.isWindows && (s:grep_exe ==# 'rg' || s:grep_exe ==# 'ag' || s:grep_exe ==# 'pt' )
" when using rg, ag, need to add '.' at the end.
if s:grep_exe ==# 'rg' || s:grep_exe ==# 'ag' || s:grep_exe ==# 'pt'
let cmd += ['.']
endif
let cmd += s:grep_ropt
Expand Down

0 comments on commit d9524d5

Please sign in to comment.