Fix order of statements

Commit #3bd6cb5ee498 causes an error, because a variable was used
before it was declared. Fix this.
This commit is contained in:
Christian Brabandt 2016-11-03 17:26:32 +01:00
parent 3bd6cb5ee4
commit 6dae3452db
1 changed files with 4 additions and 3 deletions

View File

@ -3,13 +3,14 @@
scriptencoding utf-8
let s:has_fugitive = exists('*fugitive#head')
let s:has_lawrencium = exists('*lawrencium#statusline')
let s:has_vcscommand = get(g:, 'airline#extensions#branch#use_vcscommand', 0) && exists('*VCSCommandGetStatusLine')
if !s:has_fugitive && !s:has_lawrencium && !s:has_vcscommand
finish
endif
let s:has_fugitive = exists('*fugitive#head')
let s:has_lawrencium = exists('*lawrencium#statusline')
let s:has_vcscommand = get(g:, 'airline#extensions#branch#use_vcscommand', 0) && exists('*VCSCommandGetStatusLine')
let s:has_async = airline#util#async
let s:git_dirs = {}