Skip to content

Commit 1f9c911

Browse files
committed
Bug fix: Don't hang during :RestartVim when &verbose >= 1
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!
1 parent 13d405d commit 1f9c911

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

autoload/xolox/session.vim

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

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

plugin/session.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
" Vim script
22
" Author: Peter Odding
3-
" Last Change: June 11, 2011
3+
" Last Change: June 13, 2011
44
" URL: http://peterodding.com/code/vim/session/
5-
" Version: 1.4.7
5+
" Version: 1.4.8
66

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

0 commit comments

Comments
 (0)