From 2a6a6c3014e728cd01c750b0f60484d4eaf22a8c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 2 Oct 2017 19:29:48 +0200 Subject: 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) --- src/eval.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/eval.c') 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 */ -- cgit v1.2.1