File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
" Last Change: May 26, 2013
4
4
" URL: http://peterodding.com/code/vim/session/
5
5
6
- let g: xolox #session#version = ' 2.3.8 '
6
+ let g: xolox #session#version = ' 2.3.9 '
7
7
8
8
" Public API for session persistence. {{{1
9
9
@@ -331,7 +331,10 @@ function! xolox#session#auto_load() " {{{2
331
331
\ is_default_session ? ' default' : ' last used' ,
332
332
\ is_default_session ? ' ' : printf (' (%s)' , session))
333
333
" Prepare the list of choices.
334
- let choices = [' &Yes' , ' &No' , ' &Forget' ]
334
+ let choices = [' &Yes' , ' &No' ]
335
+ if g: session_default_to_last && has_last_session
336
+ call add (choices, ' &Forget' )
337
+ endif
335
338
" Prompt the user (if not configured otherwise).
336
339
let choice = s: prompt (msg, choices, ' g:session_autoload' )
337
340
if choice == 1
You can’t perform that action at this time.
0 commit comments