Skip to content

Commit 95d3b41

Browse files
committed
Allow to forget a saved default session, too.
Shutting off the query for auto-loading of a previous session is just as important for the default session, not just custom sessions. This was also the behavior of my original pull request; I don't know why you left that part out.
1 parent 5ad0d15 commit 95d3b41

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

autoload/xolox/session.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,7 @@ function! xolox#session#auto_load() " {{{2
327327
\ is_default_session ? 'default' : 'last used',
328328
\ is_default_session ? '' : printf(' (%s)', session))
329329
" Prepare the list of choices.
330-
let choices = ['&Yes', '&No']
331-
if !is_default_session
332-
call add(choices, '&Forget')
333-
endif
330+
let choices = ['&Yes', '&No', '&Forget']
334331
" Prompt the user (if not configured otherwise).
335332
let choice = s:prompt(msg, choices, 'g:session_autoload')
336333
if choice == 1

0 commit comments

Comments
 (0)