diff options
author | Jakob <jakob@pipefour.org> | 2012-03-29 15:02:53 -0700 |
---|---|---|
committer | Felipe Contreras <felipe.contreras@gmail.com> | 2012-04-21 05:19:30 +0300 |
commit | ae525b7e5b980a949e00b79f9cd5e9a5c1b30c8f (patch) | |
tree | 8a4245d934b6c5e78d64e1bcb1161255ef779bc7 /vim | |
parent | de0557477d908be26615e8fda9f5eb62bed68b65 (diff) |
vim: fix regex after "notmuch show" output change
The new field "excluded" was added to the output and made this regex fail.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'vim')
-rw-r--r-- | vim/plugin/notmuch.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 21985c71..8f27fb92 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -48,7 +48,7 @@ let s:notmuch_defaults = { \ '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_message_parse_regexp': '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) excluded:\([0-9]*\) filename:\(.*\)$', \ 'g:notmuch_show_tags_regexp': '(\([^)]*\))$' , \ \ 'g:notmuch_show_signature_regexp': '^\(-- \?\|_\+\)$' , @@ -870,7 +870,8 @@ function! s:NM_cmd_show_parse(inlines) let msg['id'] = m[1] let msg['depth'] = m[2] let msg['match'] = m[3] - let msg['filename'] = m[4] + let msg['excluded'] = m[4] + let msg['filename'] = m[5] endif let in_message = 1 |