Skip to content

Commit

Permalink
Make :ViewSession compatible with console Vim (issue #74)
Browse files Browse the repository at this point in the history
See issue #74 on GitHub:
  #74
  • Loading branch information
xolox committed Oct 15, 2013
1 parent 9607a6b commit a55318b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -246,7 +246,7 @@ Recently this plug-in switched from reimplementing [:mksession][mksession] to ac
<!-- Start of generated documentation -->

The documentation of the 34 functions below was extracted from
1 Vim scripts on July 20, 2013 at 12:48.
1 Vim scripts on October 15, 2013 at 19:26.

### Public API for the vim-session plug-in

Expand Down
10 changes: 7 additions & 3 deletions autoload/xolox/session.vim
@@ -1,10 +1,10 @@
" Public API for the vim-session plug-in.
"
" Author: Peter Odding
" Last Change: July 20, 2013
" Last Change: October 15, 2013
" URL: http://peterodding.com/code/vim/session/

let g:xolox#session#version = '2.4.8'
let g:xolox#session#version = '2.4.9'

" Public API for session persistence. {{{1

Expand Down Expand Up @@ -584,7 +584,11 @@ function! xolox#session#view_cmd(name) abort " {{{2
let msg = "session.vim %s: The %s session at %s doesn't exist!"
call xolox#misc#msg#warn(msg, g:xolox#session#version, string(name), fnamemodify(path, ':~'))
else
execute 'tab drop' fnameescape(path)
if has('gui_running')
execute 'tab drop' fnameescape(path)
else
execute 'tabedit' fnameescape(path)
endif
call xolox#misc#msg#info("session.vim %s: Viewing session script %s.", g:xolox#session#version, fnamemodify(path, ':~'))
endif
endif
Expand Down
4 changes: 2 additions & 2 deletions doc/session.txt
Expand Up @@ -490,7 +490,7 @@ might take a while...)
Function reference ~

The documentation of the 34 functions below was extracted from 1 Vim scripts on
July 20, 2013 at 12:48.
October 15, 2013 at 19:26.

-------------------------------------------------------------------------------
*public-api-for-vim-session-plug-in*
Expand Down Expand Up @@ -705,7 +705,7 @@ session. If you like the script please vote for it on Vim Online [19].
*session-license*
License ~

This software is licensed under the MIT license [20]. © 2013 Peter Odding
This software is licensed under the MIT license [20]. Š 2013 Peter Odding
<peter@peterodding.com>.

===============================================================================
Expand Down

0 comments on commit a55318b

Please sign in to comment.