From 81bbc6958127b4ac0382632acca25a0ae1f6dd7c Mon Sep 17 00:00:00 2001 From: Vladimir Date: Mon, 25 Jun 2018 14:18:44 +0300 Subject: [PATCH] Unlet s:last_message with no error in show_list (#329) If entries is empty, it will try to unlet of non-existing variable and throw the error. References #328 --- autoload/startify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index ef40896..0309e29 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -468,7 +468,7 @@ function! s:show_lists(lists) abort continue endtry if empty(entries) - unlet s:last_message + unlet! s:last_message continue endif