mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24: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 = { }
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue