File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ Recently this plug-in switched from reimplementing [:mksession][mksession] to ac
246
246
<!-- Start of generated documentation -->
247
247
248
248
The documentation of the 34 functions below was extracted from
249
- 1 Vim scripts on June 18, 2014 at 22:49 .
249
+ 1 Vim scripts on June 18, 2014 at 22:52 .
250
250
251
251
### Public API for the vim-session plug-in
252
252
Original file line number Diff line number Diff line change 4
4
" Last Change: June 18, 2014
5
5
" URL: http://peterodding.com/code/vim/session/
6
6
7
- let g: xolox #session#version = ' 2.4.11 '
7
+ let g: xolox #session#version = ' 2.4.14 '
8
8
9
9
" Public API for session persistence. {{{1
10
10
@@ -398,7 +398,7 @@ function! xolox#session#auto_load() " {{{2
398
398
endif
399
399
" Check that the user has started Vim without editing any files.
400
400
let current_buffer_is_empty = (&modified == 0 && getline (1 , ' $' ) == [' ' ])
401
- let buffer_list_is_empty = (bufnr ( ' $ ' ) == 1 && bufname ( ' % ' ) == ' ' )
401
+ let buffer_list_is_empty = (bufname ( ' % ' ) == ' ' && empty ( filter ( range ( 1 , bufnr ( ' $ ' )), ' buflisted(v:val) && v:val != ' . bufnr ( ' ' ))) )
402
402
let buffer_list_is_persistent = (index (xolox#misc#option#split (&viminfo ), ' %' ) >= 0 )
403
403
if current_buffer_is_empty && (buffer_list_is_empty || buffer_list_is_persistent)
404
404
" Check whether a session matching the user-specified server name exists.
Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ might take a while...)
490
490
Function reference ~
491
491
492
492
The documentation of the 34 functions below was extracted from 1 Vim scripts on
493
- June 18, 2014 at 22:49 .
493
+ June 18, 2014 at 22:52 .
494
494
495
495
-------------------------------------------------------------------------------
496
496
*public-api-for-vim-session-plug-in*
You can’t perform that action at this time.
0 commit comments