From 9d9b03c837edde2aaed1cd9f8472d2be45c406bf Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Wed, 25 Nov 2009 00:36:11 -0500 Subject: [PATCH] vim: return nothing instead of failting if there is no message id --- vim/plugin/notmuch.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index e9763ebe..3ceefe58 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -525,8 +525,10 @@ function! s:NM_show_message_id() if lnum > msg['end'] continue endif - - return msg['id'] + if has_key(msg,'id') + return msg['id'] + endif + return '' endfor return '' endfunction -- 2.26.2