Revert "Only show hg qtop output, if branch is also shown"
This reverts commit da78d4a7bb
,
since it causes a massive performance impact.
fixes #1035
This commit is contained in:
parent
d632c88751
commit
5e0b10c005
@ -102,13 +102,12 @@ endfunction
|
|||||||
|
|
||||||
function! s:get_hg_branch()
|
function! s:get_hg_branch()
|
||||||
if s:has_lawrencium
|
if s:has_lawrencium
|
||||||
let stl=lawrencium#statusline()
|
|
||||||
let mq=system('hg qtop')
|
let mq=system('hg qtop')
|
||||||
if v:shell_error==0 && !empty(stl)
|
if v:shell_error==0
|
||||||
let mq=matchstr(mq, '.*\ze\n')
|
let mq=matchstr(mq, '.*\ze\n')
|
||||||
return printf("%s/%s", stl, mq)
|
return lawrencium#statusline(). '/'. mq
|
||||||
endif
|
endif
|
||||||
return stl
|
return lawrencium#statusline()
|
||||||
endif
|
endif
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user