Explorar o código

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
Vladimir %!s(int64=7) %!d(string=hai) anos
pai
achega
81bbc69581
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      autoload/startify.vim

+ 1 - 1
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