Mercurial > vim
diff src/option.c @ 13234:6e972d830e13 v8.0.1491
patch 8.0.1491: the minimum width of the popup menu is hard coded
commit https://github.com/vim/vim/commit/a8f04aa275984183bab5bb583b128f38c64abb69
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 10 15:36:55 2018 +0100
patch 8.0.1491: the minimum width of the popup menu is hard coded
Problem: The minimum width of the popup menu is hard coded.
Solution: Add the 'pumwidth' option. (Christian Brabandt, James McCoy,
closes #2314)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 10 Feb 2018 15:45:06 +0100 |
parents | 51521b8a370c |
children | 5b0faf628a55 |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -2239,6 +2239,13 @@ static struct vimoption options[] = (char_u *)NULL, PV_NONE, #endif {(char_u *)0L, (char_u *)0L} SCRIPTID_INIT}, + {"pumwidth", "pw", P_NUM|P_VI_DEF, +#ifdef FEAT_INS_EXPAND + (char_u *)&p_pw, PV_NONE, +#else + (char_u *)NULL, PV_NONE, +#endif + {(char_u *)0L, (char_u *)0L} SCRIPTID_INIT}, {"pythonthreedll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE, #if defined(DYNAMIC_PYTHON3) (char_u *)&p_py3dll, PV_NONE,