mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:40:03 +08:00
fix(flygrep): use current directory when none specified for ripgrep. (#4410)
This commit is contained in:
parent
1e4cb1f295
commit
d9524d5dbb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user