vim: return nothing instead of failting if there is no message id

This commit is contained in:
Bart Trojanowski 2009-11-25 00:36:11 -05:00
parent a01e1335be
commit 9d9b03c837

View file

@ -525,8 +525,10 @@ function! s:NM_show_message_id()
if lnum > msg['end'] if lnum > msg['end']
continue continue
endif endif
if has_key(msg,'id')
return msg['id'] return msg['id']
endif
return ''
endfor endfor
return '' return ''
endfunction endfunction