diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-10-02 19:29:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-10-02 19:29:48 +0200 |
commit | 2a6a6c3014e728cd01c750b0f60484d4eaf22a8c (patch) | |
tree | 13f1b1e0e7f5ee17e9e9e53a6a09a2631ce9235b /src/eval.c | |
parent | 712549e04eddd6687c4b7654ec9af6da6c365603 (diff) | |
download | vim-git-2a6a6c3014e728cd01c750b0f60484d4eaf22a8c.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 8b1ceaea8..8670e1240 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 */ |