From 651b215f0f6d4f220ff67941dbecd54692382472 Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Fri, 27 Nov 2009 01:02:37 -0500 Subject: [PATCH] vim: make sure headers begin with \w --- vim/plugin/notmuch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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