Browse Source

Check if savevars exists

Sergey Vlasov 7 năm trước cách đây
mục cha
commit
e25fbe1c0d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      autoload/startify.vim

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