diff src/option.h @ 12802:29a728529f92 v8.0.1278

patch 8.0.1278: GUI window always resizes when adding scrollbar commit https://github.com/vim/vim/commit/8ac441576fd219fb7227349e228d5b68520b204a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 9 18:33:29 2017 +0100 patch 8.0.1278: GUI window always resizes when adding scrollbar Problem: GUI window always resizes when adding/removing a scrollbar, toolbar, etc. Solution: Add the 'k' flag in 'guioptions' to keep the GUI window size and change the number of lines/columns instead. (Ychin, closes #703)
author Christian Brabandt <cb@256bit.org>
date Thu, 09 Nov 2017 18:45:04 +0100
parents b390f5003e2f
children ebb4f6c93598
line wrap: on
line diff
--- a/src/option.h
+++ b/src/option.h
@@ -235,7 +235,8 @@
 #define GO_TOOLBAR	'T'		/* add toolbar */
 #define GO_FOOTER	'F'		/* add footer */
 #define GO_VERTICAL	'v'		/* arrange dialog buttons vertically */
-#define GO_ALL		"aAbcefFghilmMprtTv" /* all possible flags for 'go' */
+#define GO_KEEPWINSIZE	'k'		/* keep GUI window size */
+#define GO_ALL		"aAbcefFghilmMprtTvk" /* all possible flags for 'go' */
 
 /* flags for 'comments' option */
 #define COM_NEST	'n'		/* comments strings nest */