From 1f9c911327bcc5f1e3f0b66ddf20b75f766a1968 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Mon, 13 Jun 2011 23:02:44 +0200 Subject: [PATCH] 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! --- autoload/xolox/session.vim | 4 ++-- plugin/session.vim | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/xolox/session.vim b/autoload/xolox/session.vim index 9becc57..86af127 100644 --- a/autoload/xolox/session.vim +++ b/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(':p:~') @@ -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 diff --git a/plugin/session.vim b/plugin/session.vim index dd86673..f716bfc 100644 --- a/plugin/session.vim +++ b/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