diff options
author | Bart Trojanowski <bart@jukie.net> | 2009-11-27 01:17:36 -0500 |
---|---|---|
committer | Bart Trojanowski <bart@jukie.net> | 2009-11-27 01:17:36 -0500 |
commit | becc49eee7b2fdf20cb32055fdbfba7b4a5159ac (patch) | |
tree | f50c09d7e1ebd81d791348359d6a47b64a15175d /vim/plugin | |
parent | b5e28d86153c15461f277ef1b0b827d3fe4a5fc1 (diff) |
vim: fix message parsing patterns
if a message did not contain a trailing CR, we may not be able to match ^\f
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/notmuch.vim | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 47a2261..e94d44b 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -33,17 +33,17 @@ let s:notmuch_defaults = { \ 'g:notmuch_show_fold_bodies': 0 , \ 'g:notmuch_show_fold_headers': 1 , \ - \ 'g:notmuch_show_message_begin_regexp': '^message{' , - \ 'g:notmuch_show_message_end_regexp': '^message}' , - \ 'g:notmuch_show_header_begin_regexp': '^header{' , - \ 'g:notmuch_show_header_end_regexp': '^header}' , - \ 'g:notmuch_show_body_begin_regexp': '^body{' , - \ 'g:notmuch_show_body_end_regexp': '^body}' , - \ 'g:notmuch_show_attachment_begin_regexp': '^attachment{' , - \ 'g:notmuch_show_attachment_end_regexp': '^attachment}' , - \ 'g:notmuch_show_part_begin_regexp': '^part{' , - \ 'g:notmuch_show_part_end_regexp': '^part}' , - \ 'g:notmuch_show_marker_regexp': '^\\(message\\|header\\|body\\|attachment\\|part\\)[{}].*$', + \ 'g:notmuch_show_message_begin_regexp': 'message{' , + \ 'g:notmuch_show_message_end_regexp': 'message}' , + \ 'g:notmuch_show_header_begin_regexp': 'header{' , + \ 'g:notmuch_show_header_end_regexp': 'header}' , + \ 'g:notmuch_show_body_begin_regexp': 'body{' , + \ 'g:notmuch_show_body_end_regexp': 'body}' , + \ 'g:notmuch_show_attachment_begin_regexp': 'attachment{' , + \ 'g:notmuch_show_attachment_end_regexp': 'attachment}' , + \ 'g:notmuch_show_part_begin_regexp': 'part{' , + \ 'g:notmuch_show_part_end_regexp': 'part}' , + \ 'g:notmuch_show_marker_regexp': '\\(message\\|header\\|body\\|attachment\\|part\\)[{}].*$', \ \ 'g:notmuch_show_message_parse_regexp': '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) filename:\(.*\)$', \ 'g:notmuch_show_tags_regexp': '(\([^)]*\))$' , |