Skip to content

Commit

Permalink
Merge pull request #59: Make :RestartVim retain server name
Browse files Browse the repository at this point in the history
See pull request #59 on GitHub:
  #59
  • Loading branch information
xolox committed Jun 22, 2013
2 parents 4664cc7 + dd7f738 commit bbd1f8f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions autoload/xolox/session.vim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
" Vim script
" Author: Peter Odding
" Last Change: June 6, 2013
" Last Change: June 22, 2013
" URL: http://peterodding.com/code/vim/session/

let g:xolox#session#version = '2.3.11'
let g:xolox#session#version = '2.4'

" Public API for session persistence. {{{1

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

0 comments on commit bbd1f8f

Please sign in to comment.