From d9524d5dbbd11ae20d310a2d413a75dd32a1d891 Mon Sep 17 00:00:00 2001 From: Kayle Gishen Date: Thu, 19 Aug 2021 01:25:47 -0400 Subject: [PATCH] fix(flygrep): use current directory when none specified for ripgrep. (#4410) --- autoload/SpaceVim/plugins/flygrep.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/plugins/flygrep.vim b/autoload/SpaceVim/plugins/flygrep.vim index fbc4b1bd7..2c302f010 100644 --- a/autoload/SpaceVim/plugins/flygrep.vim +++ b/autoload/SpaceVim/plugins/flygrep.vim @@ -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