projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e897111
)
vim: place ... more inteligently when shortening 'from' list in search
author
Bart Trojanowski
<bart@jukie.net>
Sun, 22 Nov 2009 04:48:39 +0000
(23:48 -0500)
committer
Bart Trojanowski
<bart@jukie.net>
Wed, 25 Nov 2009 05:48:53 +0000
(
00:48
-0500)
vim/plugin/notmuch.vim
patch
|
blob
|
history
diff --git
a/vim/plugin/notmuch.vim
b/vim/plugin/notmuch.vim
index d786cedf52247d7617d2dde0ede7b30c751b3c45..9cee5008f7848a4835649027dd399d329a28f6b8 100644
(file)
--- a/
vim/plugin/notmuch.vim
+++ b/
vim/plugin/notmuch.vim
@@
-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