diff --git a/autoload/flog/shell.vim b/autoload/flog/shell.vim index 7d5a475..689fba7 100644 --- a/autoload/flog/shell.vim +++ b/autoload/flog/shell.vim @@ -17,18 +17,12 @@ function! flog#shell#EscapeList(list) abort return map(copy(a:list), 'flog#shell#Escape(v:val)') endfunction -if has('nvim') || v:version > 704 || (v:version == 704 && get(v:, 'patchlevel', 0) >= 247) - function! flog#shell#Systemlist(cmd) abort - return systemlist(a:cmd) - endfunction -else - function! flog#shell#Systemlist(cmd) abort - if type(a:cmd) == v:t_list - return systemlist(join(a:cmd, ' ')) - endif - return systemlist(a:cmd) - endfunction -endif +function! flog#shell#Systemlist(cmd) abort + if type(a:cmd) == v:t_list + return systemlist(join(a:cmd, ' ')) + endif + return systemlist(a:cmd) +endfunction function! flog#shell#Run(cmd) abort let l:output = flog#shell#Systemlist(a:cmd)