Skip to content

Commit

Permalink
Allow to forget a saved default session, too.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
inkarkat committed May 23, 2013
1 parent 5ad0d15 commit 95d3b41
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions autoload/xolox/session.vim
Expand Up @@ -327,10 +327,7 @@ function! xolox#session#auto_load() " {{{2
\ is_default_session ? 'default' : 'last used',
\ is_default_session ? '' : printf(' (%s)', session))
" Prepare the list of choices.
let choices = ['&Yes', '&No']
if !is_default_session
call add(choices, '&Forget')
endif
let choices = ['&Yes', '&No', '&Forget']
" Prompt the user (if not configured otherwise).
let choice = s:prompt(msg, choices, 'g:session_autoload')
if choice == 1
Expand Down

0 comments on commit 95d3b41

Please sign in to comment.