mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-29 00:44:34 +02: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:
parent
3bd6cb5ee4
commit
6dae3452db
@ -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 = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user