branch: comment why the argument is not used for update_hg_branch

This commit is contained in:
Christian Brabandt 2017-08-23 18:23:28 +02:00
parent 8cd7e35027
commit 3ec22a524c
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -118,7 +118,9 @@ function! s:update_git_branch(path)
let s:vcs_config['git'].branch = name
endfunction
function! s:update_hg_branch(path)
function! s:update_hg_branch(...)
" path argument is not actually used, so we don't actually care about a:1
" it is just needed, because update_git_branch needs it.
if s:has_lawrencium
let stl=lawrencium#statusline()
if !empty(stl) && g:airline#init#async && !get(b:, 'airline_mq_disabled', 0)