Permalink
Browse files

Always source powerline/[theme].vim, regardless of caching settings

  • Loading branch information...
1 parent f775a61 commit c4f1d15edaad75e0c1164f7b08486483946054c4 @Lokaltog Lokaltog committed Nov 21, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 autoload/Pl.vim
View
@@ -427,6 +427,14 @@
call delete(g:Powerline_cachefile)
endif
+ " Load main statusline file
+ let main_path = globpath(&rtp, 'powerline/'. g:Powerline_theme .'.vim', 1)
+ if ! empty(main_path) && filereadable(main_path)
+ exec 'source' main_path
+ endif
+
+ " Load cached statuslines
+ " Reload and cache statuslines if no cached statuslines exist
if ! Pl#LoadCached()
for path in split(globpath(&rtp, 'powerline/'. g:Powerline_theme .'/*', 1))
exec 'source' path

0 comments on commit c4f1d15

Please sign in to comment.