From 309379fc989a4f3337c9cf3361ab6eb9a456c626 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 6 Feb 2013 16:26:26 +0100 Subject: updated for version 7.3.802 Problem: After setting 'isk' to a value ending in a comma appending to the option fails. Solution: Disallow a trailing comma for 'isk' and similar options. --- src/charset.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/charset.c') diff --git a/src/charset.c b/src/charset.c index b5dcfac1b..fd4b500be 100644 --- a/src/charset.c +++ b/src/charset.c @@ -284,7 +284,12 @@ buf_init_chartab(buf, global) } ++c; } + + c = *p; p = skip_to_option_part(p); + if (c == ',' && *p == NUL) + /* Trailing comma is not allowed. */ + return FAIL; } } chartab_initialized = TRUE; -- cgit v1.2.1