mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
vim: make sure headers begin with \w
This commit is contained in:
parent
350e013696
commit
651b215f0f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue