Navigation Menu

Skip to content

Commit

Permalink
Bug fix: Don't hang during :RestartVim when &verbose >= 1
Browse files Browse the repository at this point in the history
When I set &verbose >= 1 and use :RestartVim it sometimes hangs just
before restarting with the dreaded "hit enter" prompt. I guess this
happens because Vim prints "Writing viminfo file" and the message
is about to scroll by without the user noticing. Anyway shutting down
the old instance of Vim is half the point of the :RestartVim command
so now it silences the "Writing viminfo file" message and others!
  • Loading branch information
xolox committed Jun 13, 2011
1 parent 13d405d commit 1f9c911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autoload/xolox/session.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding
" Last Change: June 11, 2011
" Last Change: June 13, 2011
" URL: http://peterodding.com/code/vim/session/

let s:script = expand('<sfile>:p:~')
Expand Down Expand Up @@ -439,7 +439,7 @@ function! xolox#session#restart_cmd(bang, args) abort " {{{2
silent execute '! TERM=' . term command encoding '&'
endif
execute 'CloseSession' . a:bang
quitall
silent quitall
endif
endfunction

Expand Down
4 changes: 2 additions & 2 deletions plugin/session.vim
@@ -1,8 +1,8 @@
" Vim script
" Author: Peter Odding
" Last Change: June 11, 2011
" Last Change: June 13, 2011
" URL: http://peterodding.com/code/vim/session/
" Version: 1.4.7
" Version: 1.4.8

" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3150 1 :AutoInstall: session.zip
Expand Down

0 comments on commit 1f9c911

Please sign in to comment.