mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-26 03:14:51 +01:00
vim: place ... more inteligently when shortening 'from' list in search
This commit is contained in:
parent
e8971117ff
commit
5736ea3027
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ function! s:NM_cmd_search_fmtline(line)
|
|||
let max = g:notmuch_search_from_column_width
|
||||
let from = m[3]
|
||||
if strlen(from) >= max
|
||||
let from = m[3][0:max-4] . '...'
|
||||
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])
|
||||
endfunction
|
||||
|
|
Loading…
Reference in a new issue