File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -386,10 +386,11 @@ function! xolox#session#auto_load() " {{{2
386386 return
387387 endif
388388 " Check that the user has started Vim without editing any files.
389+ let current_buffer_is_startify = exists (' b:current_syntax' ) && b: current_syntax == ' startify'
389390 let current_buffer_is_empty = (&modified == 0 && getline (1 , ' $' ) == [' ' ])
390391 let buffer_list_is_empty = (bufname (' %' ) == ' ' && empty (filter (range (1 , bufnr (' $' )), ' buflisted(v:val) && v:val != ' . bufnr (' ' ))))
391392 let buffer_list_is_persistent = (index (xolox#misc#option#split (&viminfo ), ' %' ) >= 0 )
392- if current_buffer_is_empty && (buffer_list_is_empty || buffer_list_is_persistent)
393+ if ( current_buffer_is_empty || current_buffer_is_startify) && (buffer_list_is_empty || buffer_list_is_persistent)
393394 " Check whether a session matching the user-specified server name exists.
394395 if v: servername !~ ' ^\cgvim\d*$'
395396 for session in xolox#session#get_names (0 )
You can’t perform that action at this time.
0 commit comments