commit | 2a6a6c3014e728cd01c750b0f60484d4eaf22a8c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Oct 02 19:29:48 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Oct 02 19:29:48 2017 +0200 |
tree | 13f1b1e0e7f5ee17e9e9e53a6a09a2631ce9235b | |
parent | 712549e04eddd6687c4b7654ec9af6da6c365603 [diff] [blame] |
patch 8.0.1172: when E734 is given option is still set Problem: When E734 is given option is still set. Solution: Assign NULL to "s". (Christian Brabandt)
diff --git a/src/eval.c b/src/eval.c index 8b1ceae..8670e12 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -1704,7 +1704,10 @@ &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 */