Add mq patch to branch output

This commit is contained in:
Christian Brabandt 2016-02-11 22:44:12 +01:00
parent 1dc8eac3d2
commit 8023f6f5dc
1 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,11 @@ endfunction
function! s:get_hg_branch()
if s:has_lawrencium
let mq=system('hg qtop')
if v:shell_error==0
let mq=matchstr(mq, '.*\ze\n')
return lawrencium#statusline(). '/'. mq
endif
return lawrencium#statusline()
endif
return ''