\n only works with double quotes.

This commit is contained in:
Bailey Ling 2013-08-26 15:32:18 +00:00
parent c42eefbd1d
commit 04e00d6933
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ function! airline#extensions#load()
endif
" load all other extensions not part of the default distribution
for file in split(globpath(&rtp, "autoload/airline/extensions/*.vim"), '\n')
for file in split(globpath(&rtp, "autoload/airline/extensions/*.vim"), "\n")
if stridx(resolve(fnamemodify(file, ':p')), s:script_path) < 0
let name = fnamemodify(file, ':t:r')
if !get(g:, 'airline#extensions#'.name.'#enabled', 1)

View File

@ -122,7 +122,7 @@ function! s:airline_toggle()
\ call <sid>on_window_changed()
autocmd BufWritePost */autoload/airline/themes/*.vim
\ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), '\n')[0]
\ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0]
\ | call airline#load_theme()
augroup END
if s:airline_initialized