summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c
index 0686b853c..8b3d8c660 100644
--- a/src/option.c
+++ b/src/option.c
@@ -231,6 +231,9 @@
#ifdef FEAT_WINDOWS
# define PV_WFH OPT_WIN(WV_WFH)
#endif
+#ifdef FEAT_VERTSPLIT
+# define PV_WFW OPT_WIN(WV_WFW)
+#endif
#define PV_WRAP OPT_WIN(WV_WRAP)
@@ -2640,6 +2643,13 @@ static struct vimoption
(char_u *)NULL, PV_NONE,
#endif
{(char_u *)FALSE, (char_u *)0L}},
+ {"winfixwidth", "wfw", P_BOOL|P_VI_DEF|P_RSTAT,
+#ifdef FEAT_VERTSPLIT
+ (char_u *)VAR_WIN, PV_WFW,
+#else
+ (char_u *)NULL, PV_NONE,
+#endif
+ {(char_u *)FALSE, (char_u *)0L}},
{"winminheight", "wmh", P_NUM|P_VI_DEF,
#ifdef FEAT_WINDOWS
(char_u *)&p_wmh, PV_NONE,
@@ -8869,6 +8879,9 @@ get_varp(p)
#ifdef FEAT_WINDOWS
case PV_WFH: return (char_u *)&(curwin->w_p_wfh);
#endif
+#ifdef FEAT_VERTSPLIT
+ case PV_WFW: return (char_u *)&(curwin->w_p_wfw);
+#endif
#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
case PV_PVW: return (char_u *)&(curwin->w_p_pvw);
#endif