mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-26 23:44:30 +02:00
check for correct variable
This commit is contained in:
parent
d4a239f14a
commit
b67509189b
@ -341,7 +341,7 @@ function! airline#extensions#branch#get_head()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:check_in_path()
|
function! s:check_in_path()
|
||||||
if !exists('b:airline_branch_path')
|
if !exists('b:airline_file_in_root')
|
||||||
let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', ''))
|
let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', ''))
|
||||||
let bufferpath = resolve(fnamemodify(expand('%'), ':p'))
|
let bufferpath = resolve(fnamemodify(expand('%'), ':p'))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user