From 5454451f97a9e7762d25d22ea646e20bff55da92 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 4 Jan 2010 15:54:06 +0000 Subject: [PATCH] Don't bother resizing a GUI window before exit. Restoring the original terminal size is only worthwhile when we're running in an actual terminal. Shrinking a GUI window and then closing it makes no sense. --- .vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 9b1c07f..ad3a73a 100644 --- a/.vimrc +++ b/.vimrc @@ -411,7 +411,9 @@ fun! Number(resize) "{{{2 endfun "}}}2 " Restore window size. -au Display VimLeave * if exists("g:oldcols") | call Resize_Columns("-", (&columns - g:oldcols)) | endif +if ! has("gui_running") + au Display VimLeave * if exists("g:oldcols") | call Resize_Columns("-", (&columns - g:oldcols)) | endif +endif " Map Makefile mode. au Mode BufEnter * if &ft == "make" | call MakeMode_map() | endif -- 2.7.4