aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim
diff options
context:
space:
mode:
authorGravatar Bart Trojanowski <bart@jukie.net>2009-11-27 01:17:36 -0500
committerGravatar Bart Trojanowski <bart@jukie.net>2009-11-27 01:17:36 -0500
commitbecc49eee7b2fdf20cb32055fdbfba7b4a5159ac (patch)
treef50c09d7e1ebd81d791348359d6a47b64a15175d /vim
parentb5e28d86153c15461f277ef1b0b827d3fe4a5fc1 (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')
-rw-r--r--vim/plugin/notmuch.vim22
1 files changed, 11 insertions, 11 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim
index 47a22610..e94d44bd 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': '(\([^)]*\))$' ,