mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-26 03:14:51 +01:00
vim: return nothing instead of failting if there is no message id
This commit is contained in:
parent
a01e1335be
commit
9d9b03c837
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue