Skip to content

Commit bbd1f8f

Browse files
committed
Merge pull request #59: Make :RestartVim retain server name
See pull request #59 on GitHub: #59
2 parents 4664cc7 + dd7f738 commit bbd1f8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

autoload/xolox/session.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim script
22
" Author: Peter Odding
3-
" Last Change: June 6, 2013
3+
" Last Change: June 22, 2013
44
" URL: http://peterodding.com/code/vim/session/
55

6-
let g:xolox#session#version = '2.3.11'
6+
let g:xolox#session#version = '2.4'
77

88
" Public API for session persistence. {{{1
99

@@ -645,6 +645,9 @@ function! xolox#session#restart_cmd(bang, args) abort " {{{2
645645
if !empty(args)
646646
let command .= ' -c ' . xolox#misc#escape#shell(args)
647647
endif
648+
if !empty(v:servername)
649+
let command .= ' --servername ' . xolox#misc#escape#shell(v:servername)
650+
endif
648651
" Close the session, releasing the session lock.
649652
call xolox#session#close_cmd(a:bang, 0, 1, 'RestartVim')
650653
" Start the new Vim instance.

0 commit comments

Comments
 (0)