소스 검색

Fix firstline offset under new s:lists format

Marco Hinz 7 년 전
부모
커밋
bdb389ef61
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      autoload/startify.vim

+ 2 - 2
autoload/startify.vim

@@ -191,8 +191,8 @@ function! startify#insane_in_the_membrane() abort
   let b:startify.firstline = 2
   let b:startify.firstline += len(g:startify_header)
   " no special, no local Session.vim, but a section header
-  if !s:show_special && !exists('l:show_session') && type(s:lists[0]) == type([])
-    let b:startify.firstline += len(s:lists[0]) + 1
+  if !s:show_special && !exists('l:show_session') && has_key(s:lists[0], 'header')
+    let b:startify.firstline += len(s:lists[0].header) + 1
   endif
 
   let b:startify.lastline = line('$')