1 parent af17c5d commit cfc5bdfCopy full SHA for cfc5bdf
1 file changed
autoload/xolox/session.vim
@@ -3,7 +3,7 @@
3
" Last Change: May 26, 2013
4
" URL: http://peterodding.com/code/vim/session/
5
6
-let g:xolox#session#version = '2.3.8'
+let g:xolox#session#version = '2.3.9'
7
8
" Public API for session persistence. {{{1
9
@@ -331,7 +331,10 @@ function! xolox#session#auto_load() " {{{2
331
\ is_default_session ? 'default' : 'last used',
332
\ is_default_session ? '' : printf(' (%s)', session))
333
" Prepare the list of choices.
334
- let choices = ['&Yes', '&No', '&Forget']
+ let choices = ['&Yes', '&No']
335
+ if g:session_default_to_last && has_last_session
336
+ call add(choices, '&Forget')
337
+ endif
338
" Prompt the user (if not configured otherwise).
339
let choice = s:prompt(msg, choices, 'g:session_autoload')
340
if choice == 1
0 commit comments