vim: make sure headers begin with \w

This commit is contained in:
Bart Trojanowski 2009-11-27 01:02:37 -05:00
parent 350e013696
commit 651b215f0f

View file

@ -886,7 +886,7 @@ function! s:NM_cmd_compose(words, body_lines)
let hdrs = { } let hdrs = { }
for word in a:words for word in a:words
let m = matchlist(word, '^\([^:]\+\):\s*\(.*\)\s*$') let m = matchlist(word, '^\(\w[^:]*\):\s*\(.*\)\s*$')
if !len(m) if !len(m)
throw 'Eeek! bad parameter ''' . string(word) . '''' throw 'Eeek! bad parameter ''' . string(word) . ''''
endif endif