Просмотр исходного кода

Reset list of section lines properly

Marco Hinz 11 лет назад
Родитель
Сommit
67e9147b51
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      autoload/startify.vim

+ 2 - 2
autoload/startify.vim

@@ -34,8 +34,6 @@ else
         \ ]
         \ ]
 endif
 endif
 
 
-let s:section_header_lines = []
-
 " Function: #get_separator {{{1
 " Function: #get_separator {{{1
 function! startify#get_separator() abort
 function! startify#get_separator() abort
   return !exists('+shellslash') || &shellslash ? '/' : '\'
   return !exists('+shellslash') || &shellslash ? '/' : '\'
@@ -89,6 +87,8 @@ function! startify#insane_in_the_membrane() abort
     echohl None
     echohl None
   endif
   endif
 
 
+  let s:section_header_lines = []
+
   for item in s:lists
   for item in s:lists
     if type(item) == 1
     if type(item) == 1
       let cnt = s:show_{item}(cnt)
       let cnt = s:show_{item}(cnt)