mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-23 04:11:26 +08:00
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:
@@ -3,13 +3,14 @@
|
|||||||
|
|
||||||
scriptencoding utf-8
|
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
|
if !s:has_fugitive && !s:has_lawrencium && !s:has_vcscommand
|
||||||
finish
|
finish
|
||||||
endif
|
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:has_async = airline#util#async
|
||||||
let s:git_dirs = {}
|
let s:git_dirs = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user