From e25fbe1c0d6f8cda83c0e300d70f9b8009e4134f Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Wed, 28 Nov 2018 16:06:54 +0200 Subject: [PATCH] Check if savevars exists --- autoload/startify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 26cf575..abd7b6c 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -314,7 +314,7 @@ function! startify#session_write(spath) endif " put variables from savevars into session file - if !empty(savevars) + if exists('savevars') && !empty(savevars) call append(line('$')-3, savevars) endif