summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-09 15:07:54 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-09 15:07:54 +0000
commit7d96acd66bcb1dcb721715ef988825fc9d6b2f2e (patch)
treeefa04890ce2c985fd2692fdf29b2d3b7d9f47f2c /src/option.c
parentff064e1698a09afc73643fa160705c8a5ac95234 (diff)
downloadvim-7d96acd66bcb1dcb721715ef988825fc9d6b2f2e.zip
updated for version 7.1-314
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c
index c43286974..885c547b6 100644
--- a/src/option.c
+++ b/src/option.c
@@ -243,7 +243,8 @@
/* WV_ and BV_ values get typecasted to this for the "indir" field */
typedef enum
{
- PV_NONE = 0
+ PV_NONE = 0,
+ PV_MAXVAL = 0xffff /* to avoid warnings for value out of range */
} idopt_T;
/*
@@ -8713,7 +8714,7 @@ put_setstring(fd, cmd, name, valuep, expand)
{
s = *valuep;
while (*s != NUL)
- if (fputs((char *)str2special(&s, FALSE), fd) < 0)
+ if (put_escstr(fd, str2special(&s, FALSE), 2) == FAIL)
return FAIL;
}
else if (expand)