mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +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
|
" if grep dir is empty, grep files is empty, which means searhing in
|
||||||
" current directory.
|
" current directory.
|
||||||
let cmd += [a:expr]
|
let cmd += [a:expr]
|
||||||
" in window, when using rg, ag, need to add '.' at the end.
|
" 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' )
|
if s:grep_exe ==# 'rg' || s:grep_exe ==# 'ag' || s:grep_exe ==# 'pt'
|
||||||
let cmd += ['.']
|
let cmd += ['.']
|
||||||
endif
|
endif
|
||||||
let cmd += s:grep_ropt
|
let cmd += s:grep_ropt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user