From 04fe68b3cb17866c5fcff43b2bd301564ca1e51c Mon Sep 17 00:00:00 2001 From: Jerome Reybert Date: Mon, 7 Aug 2017 23:57:59 +0200 Subject: [PATCH] cut info lines to remove tail spaces there are ones if there is no branch --- plugin/magit.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/magit.vim b/plugin/magit.vim index 8c90bef..303a813 100644 --- a/plugin/magit.vim +++ b/plugin/magit.vim @@ -87,15 +87,15 @@ function! s:mg_get_info() let upstream_msg=s:mg_cut_str(magit#git#get_commit_subject(upstream_br), limit) let push_msg=s:mg_cut_str(magit#git#get_commit_subject(push_br), limit) - let head_line=printf("%-*s %-*s %s", + let head_line=magit#utils#strip(printf("%-*s %-*s %s", \ align_w, g:magit_section_info.cur_head, - \ max_br_w, head_br, head_msg) - let upstream_line=printf("%-*s %-*s %s", + \ max_br_w, head_br, head_msg)) + let upstream_line=magit#utils#strip(printf("%-*s %-*s %s", \ align_w, g:magit_section_info.cur_upstream, - \ max_br_w, upstream_br, upstream_msg) - let push_line=printf("%-*s %-*s %s", + \ max_br_w, upstream_br, upstream_msg)) + let push_line=magit#utils#strip(printf("%-*s %-*s %s", \ align_w, g:magit_section_info.cur_push, - \ max_br_w, push_br, push_msg) + \ max_br_w, push_br, push_msg)) silent put =g:magit_sections.info