mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-07 22:24:41 +02:00
\n only works with double quotes.
This commit is contained in:
parent
c42eefbd1d
commit
04e00d6933
@ -208,7 +208,7 @@ function! airline#extensions#load()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" load all other extensions not part of the default distribution
|
" 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
|
if stridx(resolve(fnamemodify(file, ':p')), s:script_path) < 0
|
||||||
let name = fnamemodify(file, ':t:r')
|
let name = fnamemodify(file, ':t:r')
|
||||||
if !get(g:, 'airline#extensions#'.name.'#enabled', 1)
|
if !get(g:, 'airline#extensions#'.name.'#enabled', 1)
|
||||||
|
@ -122,7 +122,7 @@ function! s:airline_toggle()
|
|||||||
\ call <sid>on_window_changed()
|
\ call <sid>on_window_changed()
|
||||||
|
|
||||||
autocmd BufWritePost */autoload/airline/themes/*.vim
|
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()
|
\ | call airline#load_theme()
|
||||||
augroup END
|
augroup END
|
||||||
if s:airline_initialized
|
if s:airline_initialized
|
||||||
|
Loading…
x
Reference in New Issue
Block a user