Make completion work with files containing spaces

This commit is contained in:
Marco Hinz 2013-05-30 09:57:59 +02:00
parent 24e8a70129
commit f535b97b3f

View file

@ -200,12 +200,12 @@ endfunction
" Function: startify#session_list {{{1 " Function: startify#session_list {{{1
function! startify#session_list(lead, ...) abort function! startify#session_list(lead, ...) abort
return map(split(globpath(s:session_dir, '*'.a:lead.'*', '\n')), 'fnamemodify(v:val, ":t")') return map(split(globpath(s:session_dir, '*'.a:lead.'*'), '\n'), 'fnamemodify(v:val, ":t")')
endfunction endfunction
" Function: startify#session_list_as_string {{{1 " Function: startify#session_list_as_string {{{1
function! startify#session_list_as_string(lead, ...) abort function! startify#session_list_as_string(lead, ...) abort
return join(map(split(globpath(s:session_dir, '*'.a:lead.'*', '\n')), 'fnamemodify(v:val, ":t")'), "\n") return join(map(split(globpath(s:session_dir, '*'.a:lead.'*'), '\n'), 'fnamemodify(v:val, ":t")'), "\n")
endfunction endfunction
" Function: startify#get_separator {{{1 " Function: startify#get_separator {{{1