From 3ec22a524ca9221016ae6a2223dca1c1ea0612c8 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 23 Aug 2017 18:23:28 +0200 Subject: [PATCH] branch: comment why the argument is not used for update_hg_branch --- autoload/airline/extensions/branch.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index 6d6e5cd..7ad6c3b 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -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)