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