From 5e0b10c00514b279cfac77b82a1cee2a3956fbc3 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 16 Feb 2016 17:48:20 +0100 Subject: [PATCH] Revert "Only show hg qtop output, if branch is also shown" This reverts commit da78d4a7bb18b724f6061150bb7e9f3fd380dfff, since it causes a massive performance impact. fixes #1035 --- autoload/airline/extensions/branch.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index f1300b4d..abda0782 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -102,13 +102,12 @@ endfunction function! s:get_hg_branch() if s:has_lawrencium - 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) + if v:shell_error==0 + let mq=matchstr(mq, '.*\ze\n') + return lawrencium#statusline(). '/'. mq endif - return stl + return lawrencium#statusline() endif return '' endfunction