diff --git a/.ci/detach_plugin.sh b/.ci/detach_plugin.sh index 6c9ea385f..a18cff9b9 100755 --- a/.ci/detach_plugin.sh +++ b/.ci/detach_plugin.sh @@ -46,8 +46,10 @@ main () { _detect autoload/SpaceVim/api/data/dict.vim _detect autoload/SpaceVim/api/data/list.vim _detect autoload/SpaceVim/api/data/json.vim + _detect autoload/SpaceVim/api/data/string.vim _detect autoload/SpaceVim/api/prompt.vim _detect autoload/SpaceVim/api/job.vim + _detect autoload/SpaceVim/api/vim.vim _detect autoload/SpaceVim/api/file.vim _detect autoload/SpaceVim/api/system.vim _detect autoload/SpaceVim/mapping/search.vim diff --git a/autoload/SpaceVim/plugins/flygrep.vim b/autoload/SpaceVim/plugins/flygrep.vim index 6aa3c0754..e3e1fc24b 100644 --- a/autoload/SpaceVim/plugins/flygrep.vim +++ b/autoload/SpaceVim/plugins/flygrep.vim @@ -14,7 +14,7 @@ let s:SYS = SpaceVim#api#import('system') let s:BUFFER = SpaceVim#api#import('vim#buffer') let s:LIST = SpaceVim#api#import('data#list') let s:REGEX = SpaceVim#api#import('vim#regex') - +let s:VIM = SpaceVim#api#import('vim') let s:LOGGER =SpaceVim#logger#derive('FlyGrep') let s:HI = SpaceVim#api#import('vim#highlight') if has('nvim') @@ -860,7 +860,7 @@ function! SpaceVim#plugins#flygrep#open(argv) abort call s:matchadd('FileName', s:filename_pattern, 3) let s:MPT._prompt.begin = get(a:argv, 'input', '') let fs = get(a:argv, 'files', '') - if fs ==# '@buffers' + if !s:VIM.is_list(fs) && fs ==# '@buffers' let s:grep_files = map(s:BUFFER.listed_buffers(), 'bufname(v:val)') elseif !empty(fs) let s:grep_files = fs