commit | 309379fc989a4f3337c9cf3361ab6eb9a456c626 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Feb 06 16:26:26 2013 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Feb 06 16:26:26 2013 +0100 |
tree | b2e09c942df46345f1e6f7b0c292153e37b9c18f | |
parent | 530e7dfafd7e951ac36e39c87bf72ebdb4caa428 [diff] [blame] |
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.
diff --git a/src/charset.c b/src/charset.c index b5dcfac..fd4b500 100644 --- a/src/charset.c +++ b/src/charset.c
@@ -284,7 +284,12 @@ } ++c; } + + c = *p; p = skip_to_option_part(p); + if (c == ',' && *p == NUL) + /* Trailing comma is not allowed. */ + return FAIL; } } chartab_initialized = TRUE;