|
4 | 4 | " Last Change: March 15, 2015
|
5 | 5 | " URL: http://peterodding.com/code/vim/session/
|
6 | 6 |
|
7 |
| -let g:xolox#session#version = '2.9.2' |
| 7 | +let g:xolox#session#version = '2.10' |
8 | 8 |
|
9 | 9 | " Public API for session persistence. {{{1
|
10 | 10 |
|
@@ -406,9 +406,9 @@ function! xolox#session#auto_load() " {{{2
|
406 | 406 | \ is_default_session ? 'default' : 'last used',
|
407 | 407 | \ is_default_session ? '' : printf(' (%s)', session))
|
408 | 408 | " Prepare the list of choices.
|
409 |
| - let choices = ['&Yes', '&No'] |
| 409 | + let choices = ["&Restore", "&Don't Restore"] |
410 | 410 | if g:session_default_to_last && has_last_session
|
411 |
| - call add(choices, '&Forget') |
| 411 | + call add(choices, "&Forget") |
412 | 412 | endif
|
413 | 413 | " Prompt the user (if not configured otherwise).
|
414 | 414 | let choice = s:prompt(msg, choices, 'g:session_autoload')
|
@@ -462,7 +462,7 @@ function! xolox#session#auto_save() " {{{2
|
462 | 462 | if !empty(name)
|
463 | 463 | let is_tab_scoped = xolox#session#is_tab_scoped()
|
464 | 464 | let msg = "Do you want to save your %s before quitting Vim?"
|
465 |
| - if s:prompt(printf(msg, xolox#session#get_label(name, is_tab_scoped)), ['&Yes', '&No'], 'g:session_autosave') == 1 |
| 465 | + if s:prompt(printf(msg, xolox#session#get_label(name, is_tab_scoped)), ["&Save", "&Don't Save"], 'g:session_autosave') == 1 |
466 | 466 | if g:session_default_overwrite && (name == g:session_default_name)
|
467 | 467 | let bang = '!'
|
468 | 468 | else
|
@@ -536,7 +536,7 @@ function! s:prompt(msg, choices, option_name)
|
536 | 536 | return 0
|
537 | 537 | else
|
538 | 538 | if g:session_verbose_messages
|
539 |
| - let format = "%s Note that you can permanently disable this dialog by adding the following line to your %s script:\n\n\t:let %s = 'no'" |
| 539 | + let format = "%s\n\nNote that you can permanently disable this dialog by adding the following line to your %s script:\n\n\t:let %s = 'no'" |
540 | 540 | let prompt = printf(format, a:msg, xolox#misc#os#is_win() ? '~\_vimrc' : '~/.vimrc', a:option_name)
|
541 | 541 | else
|
542 | 542 | let prompt = a:msg
|
@@ -673,7 +673,7 @@ function! xolox#session#close_cmd(bang, silent, save_allowed, command) abort " {
|
673 | 673 | if a:save_allowed
|
674 | 674 | let msg = "Do you want to save your current %s before closing it?"
|
675 | 675 | let label = xolox#session#get_label(name, !is_all_tabs)
|
676 |
| - if s:prompt(printf(msg, label), ['&Yes', '&No'], 'g:session_autosave') == 1 |
| 676 | + if s:prompt(printf(msg, label), ["&Save", "&Don't Save"], 'g:session_autosave') == 1 |
677 | 677 | call xolox#session#save_cmd(name, a:bang, a:command)
|
678 | 678 | endif
|
679 | 679 | else
|
|
0 commit comments