]> git.notmuchmail.org Git - notmuch/commit
vim: fix (hack) cig/cit parsing within multipart/*
authorJason Woofenden <jason@jasonwoof.com>
Mon, 11 Jul 2011 05:40:09 +0000 (01:40 -0400)
committerFelipe Contreras <felipe.contreras@gmail.com>
Sat, 16 Jul 2011 18:57:38 +0000 (21:57 +0300)
commit6c6c8a9c8589ee0a56469e8d8e7a31bd038eb3ae
tree599ff2902aa704a5e686a75b7cd6f39b634c4dda
parent3de487d405f7bf57e959d58ae856afcce6e277fe
vim: fix (hack) cig/cit parsing within multipart/*

The vim front-end isn't written to handle nested parts.

This patch doesn't change that, it just changes the code to pretend that
multipart/* sections end immediately. This makes the parsing code think that
all sections are top-level, and are thus parsed well enough.

The lovely result of this is that citation folds and signature folds now work
in text/plain parts that are within multipart/* sections. Also, all mime
section starts are now shown correctly (before some were not parsed and showed
the ugly ^L and an ID and so on from notmuch.)

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
vim/plugin/notmuch.vim