summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-02 19:29:48 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-02 19:29:48 +0200
commit2a6a6c3014e728cd01c750b0f60484d4eaf22a8c (patch)
tree13f1b1e0e7f5ee17e9e9e53a6a09a2631ce9235b /src/eval.c
parent712549e04eddd6687c4b7654ec9af6da6c365603 (diff)
patch 8.0.1172: when E734 is given option is still setv8.0.1172
Problem: When E734 is given option is still set. Solution: Assign NULL to "s". (Christian Brabandt)
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index 8b1ceaea80..8670e12403 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1704,7 +1704,10 @@ ex_let_one(
&stringval, opt_flags);
if ((opt_type == 1 && *op == '.')
|| (opt_type == 0 && *op != '.'))
+ {
EMSG2(_(e_letwrong), op);
+ s = NULL; /* don't set the value */
+ }
else
{
if (opt_type == 1) /* number */