1
0
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:
Kayle Gishen 2021-08-19 01:25:47 -04:00 committed by GitHub
parent 1e4cb1f295
commit d9524d5dbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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