1
0
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:
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 " 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