Skip to content

Commit 50971a4

Browse files
committed
Nvim: adjust VimEnter check due to upstream change
Due to a recent change in Nvim [1], our VimEnter check wasn't firing anymore and thus Startify wouldn't run at startup. The line2byte() "trick" was replaced by less abusing VimL. [1]: neovim/neovim@b051b13 Fixes #549
1 parent 81e36c3 commit 50971a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/startify.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function! s:update_oldfiles(file)
3434
endfunction
3535

3636
function! s:on_vimenter()
37-
if !argc() && line2byte('$') == -1
37+
if !argc() && line('$') == 1 && getline('.') == ''
3838
if get(g:, 'startify_session_autoload') && filereadable('Session.vim')
3939
source Session.vim
4040
elseif !get(g:, 'startify_disable_at_vimenter')

0 commit comments

Comments
 (0)