Permalink
Browse files

Check if tagbar exists before defining its segments

Refs #139.
  • Loading branch information...
1 parent d62402a commit b31111e14ceac0160a1703030fbbaae5656bee4c @Lokaltog Lokaltog committed May 14, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 autoload/Powerline/Segments/tagbar.vim
@@ -1,3 +1,5 @@
let g:Powerline#Segments#tagbar#segments = Pl#Segment#Init(['tagbar'
+ \ (exists('g:loaded_tagbar') && g:loaded_tagbar == 1),
+ \
\ , Pl#Segment#Create('currenttag', '%{tagbar#currenttag("%s", "")}', Pl#Segment#Modes('!N'))
\ ])

0 comments on commit b31111e

Please sign in to comment.