From: Bart Trojanowski Date: Tue, 24 Nov 2009 01:20:34 +0000 (-0500) Subject: vim: fix column formatting for >9 messages in search view X-Git-Tag: 0.1~313^2~50 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f275f5f7f0fd919b3f5a531ceb379006b740ee12;p=notmuch.git vim: fix column formatting for >9 messages in search view --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 0addd76a..0681c124 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -218,7 +218,7 @@ function! s:NM_cmd_search_fmtline(line) if strlen(from) >= max let from = substitute(m[3][0:max-4], '[^A-Za-z1-9_]*$', '', '') . '...' endif - return printf('%s %-20s | %s (%s)', m[2], from, m[4], m[5]) + return printf('%-20s %-20s | %s (%s)', m[2], from, m[4], m[5]) endfunction function! s:NM_cmd_search_mksyntax() syntax clear nmSearchFrom