vim: make sure headers begin with \w
[notmuch] / 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 m = matchlist(word, '^\([^:]\+\):\s*\(.*\)\s*$')
+                let m = matchlist(word, '^\(\w[^:]*\):\s*\(.*\)\s*$')
                 if !len(m)
                         throw 'Eeek! bad parameter ''' . string(word) . ''''
                 endif