[vim] Plugin crashes on certain multi-mime emails

2019-03-22 Thread Nicolas Lesser
For some emails, notmuch-vim crashes. I can't figure out the reason for this. The stack trace is: Error detected while processing function 13_search_show_thread[10]..13_show: line 39: NoMethodError: undefined method `mime_type' for nil:NilClass eval:22:in `block (2 levels) in ' eval:8:in `each'

[PATCH] vim: Add shift-tab key binding to go to the previous message.

2019-03-22 Thread Nicolas Lesser
--- vim/notmuch.txt | 1 + vim/notmuch.vim | 15 +++ 2 files changed, 16 insertions(+) diff --git a/vim/notmuch.txt b/vim/notmuch.txt index 43741022..5c5d758e 100644 --- a/vim/notmuch.txt +++ b/vim/notmuch.txt @@ -77,6 +77,7 @@ p Save patches r Reply ? Show thread

[PATCH] Add an option to hide the saved search query, disabled by default.

2019-03-22 Thread Nicolas Lesser
--- vim/notmuch.vim | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index ad8b7c80..2c6b471f 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -60,6 +60,7 @@ let s:notmuch_reader_default = 'mutt -f %s' let

[PATCH] vim: Ignore instead of erroring out when trying to perform an action on a non-existent thread.

2019-03-22 Thread Nicolas Lesser
--- vim/notmuch.vim | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index ad8b7c80..299405f4 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -237,7 +237,11 @@ function! s:search_tag(intags) else

[PATCH] vim: Use non-deprecated method parse instead of new.

2019-03-21 Thread Nicolas Lesser
--- vim/notmuch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index ad8b7c80..541698cd 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -666,7 +666,7 @@ ruby << EOF date =