]> git.notmuchmail.org Git - notmuch/commitdiff
vim: make sure headers begin with \w
authorBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 06:02:37 +0000 (01:02 -0500)
committerBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 06:02:37 +0000 (01:02 -0500)
vim/plugin/notmuch.vim

index 0adca0b0c574922ec78a90a1e14a74d4a8b9105b..63095ed55592842fe47e44ce49228a88f035e0f9 100644 (file)
@@ -886,7 +886,7 @@ function! s:NM_cmd_compose(words, body_lines)
 
         let hdrs = { }
         for word in a:words
 
         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
                 if !len(m)
                         throw 'Eeek! bad parameter ''' . string(word) . ''''
                 endif