Don't bother resizing a GUI window before exit.
[profile.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 9b1c07f..ad3a73a 100644 (file)
--- 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