|
@@ -34,7 +34,7 @@ function! s:update_oldfiles(file)
|
|
|
endfunction
|
|
endfunction
|
|
|
|
|
|
|
|
function! s:on_vimenter()
|
|
function! s:on_vimenter()
|
|
|
- if !argc() && line2byte('$') == -1
|
|
|
|
|
|
|
+ if !argc() && line('$') == 1 && getline('.') == ''
|
|
|
if get(g:, 'startify_session_autoload') && filereadable('Session.vim')
|
|
if get(g:, 'startify_session_autoload') && filereadable('Session.vim')
|
|
|
source Session.vim
|
|
source Session.vim
|
|
|
elseif !get(g:, 'startify_disable_at_vimenter')
|
|
elseif !get(g:, 'startify_disable_at_vimenter')
|