mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 21:24:40 +08:00
[GitFiles] Use system instead of systemlist
systemlist doesn't exist before Vim 7.4:248. See jebaum/vim-tmuxify#18
This commit is contained in:
@@ -405,7 +405,7 @@ function! s:git_status_sink(lines) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fzf#vim#gitfiles(args, ...)
|
function! fzf#vim#gitfiles(args, ...)
|
||||||
let root = systemlist('git rev-parse --show-toplevel')[0]
|
let root = split(system('git rev-parse --show-toplevel'), '\n')[0]
|
||||||
if v:shell_error
|
if v:shell_error
|
||||||
return s:warn('Not in git repo')
|
return s:warn('Not in git repo')
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user