|
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.10' |
| 7 | +let g:xolox#session#version = '2.10.1' |
8 | 8 |
|
9 | 9 | " Public API for session persistence. {{{1
|
10 | 10 |
|
@@ -671,7 +671,7 @@ function! xolox#session#close_cmd(bang, silent, save_allowed, command) abort " {
|
671 | 671 | let name = xolox#session#find_current_session()
|
672 | 672 | if name != ''
|
673 | 673 | if a:save_allowed
|
674 |
| - let msg = "Do you want to save your current %s before closing it?" |
| 674 | + let msg = "Do you want to save your %s before closing it?" |
675 | 675 | let label = xolox#session#get_label(name, !is_all_tabs)
|
676 | 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)
|
@@ -946,7 +946,15 @@ function! xolox#session#get_label(name, is_tab_scoped) " {{{2
|
946 | 946 | " name of a session. The first argument is the name (a string) and the
|
947 | 947 | " second argument is a boolean indicating the scope of the session; 1 (true)
|
948 | 948 | " means tab scoped and 0 (false) means global scope. Returns a string.
|
949 |
| - return printf('%s session %s', a:is_tab_scoped ? 'tab scoped' : 'global', string(a:name)) |
| 949 | + if a:name == g:session_default_name |
| 950 | + let description = 'default editing session' |
| 951 | + else |
| 952 | + let description = printf('editing session %s', string(a:name)) |
| 953 | + endif |
| 954 | + if a:is_tab_scoped |
| 955 | + let description = printf('tab scoped %s', description) |
| 956 | + endif |
| 957 | + return description |
950 | 958 | endfunction
|
951 | 959 |
|
952 | 960 | function! xolox#session#options_include(value) " {{{2
|
|
0 commit comments