2 parents 4664cc7 + dd7f738 commit bbd1f8fCopy full SHA for bbd1f8f
1 file changed
autoload/xolox/session.vim
@@ -1,9 +1,9 @@
1
" Vim script
2
" Author: Peter Odding
3
-" Last Change: June 6, 2013
+" Last Change: June 22, 2013
4
" URL: http://peterodding.com/code/vim/session/
5
6
-let g:xolox#session#version = '2.3.11'
+let g:xolox#session#version = '2.4'
7
8
" Public API for session persistence. {{{1
9
@@ -645,6 +645,9 @@ function! xolox#session#restart_cmd(bang, args) abort " {{{2
645
if !empty(args)
646
let command .= ' -c ' . xolox#misc#escape#shell(args)
647
endif
648
+ if !empty(v:servername)
649
+ let command .= ' --servername ' . xolox#misc#escape#shell(v:servername)
650
+ endif
651
" Close the session, releasing the session lock.
652
call xolox#session#close_cmd(a:bang, 0, 1, 'RestartVim')
653
" Start the new Vim instance.
0 commit comments