diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index d7f227d..f1300b4 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -102,7 +102,13 @@ endfunction function! s:get_hg_branch() if s:has_lawrencium - return lawrencium#statusline() + let stl=lawrencium#statusline() + let mq=system('hg qtop') + if v:shell_error==0 && !empty(stl) + let mq=matchstr(mq, '.*\ze\n') + return printf("%s/%s", stl, mq) + endif + return stl endif return '' endfunction