From: Bart Trojanowski Date: Wed, 25 Nov 2009 05:36:11 +0000 (-0500) Subject: vim: return nothing instead of failting if there is no message id X-Git-Tag: 0.1~313^2~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9d9b03c837edde2aaed1cd9f8472d2be45c406bf;p=notmuch.git vim: return nothing instead of failting if there is no message id --- 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