X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=vim%2Fplugin%2Fnotmuch.vim;h=63095ed55592842fe47e44ce49228a88f035e0f9;hp=0adca0b0c574922ec78a90a1e14a74d4a8b9105b;hb=651b215f0f6d4f220ff67941dbecd54692382472;hpb=350e0136963d14d3dfe2ba88e80c217b483d5949;ds=sidebyside diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 0adca0b0..63095ed5 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -886,7 +886,7 @@ function! s:NM_cmd_compose(words, body_lines) let hdrs = { } for word in a:words - let m = matchlist(word, '^\([^:]\+\):\s*\(.*\)\s*$') + let m = matchlist(word, '^\(\w[^:]*\):\s*\(.*\)\s*$') if !len(m) throw 'Eeek! bad parameter ''' . string(word) . '''' endif