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

Always put cursor on first entry

References #212.
Marco Hinz 9 лет назад
Родитель
Сommit
8512fa3b1c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      autoload/startify.vim

+ 2 - 2
autoload/startify.vim

@@ -138,7 +138,7 @@ function! startify#insane_in_the_membrane() abort
   let s:firstline = 2
   let s: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]) == 3
+  if !s:show_special && !exists('l:show_session') && type(s:lists[0]) == type([])
     let s:firstline += len(s:lists[0]) + 1
   endif
 
@@ -151,7 +151,7 @@ function! startify#insane_in_the_membrane() abort
   setlocal nomodifiable nomodified
 
   call s:set_mappings()
-  call cursor(s:firstline + (s:show_special ? 2 : 0), 5)
+  call cursor(s:firstline, 5)
   autocmd startify CursorMoved <buffer> call s:set_cursor()
 
   set filetype=startify