From: Iain Patterson Date: Mon, 4 Jan 2010 15:54:06 +0000 (+0000) Subject: Don't bother resizing a GUI window before exit. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=5454451f97a9e7762d25d22ea646e20bff55da92;p=profile.git 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. --- 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