diff src/charset.c @ 4096:cd5145d2408b v7.3.802

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.
author Bram Moolenaar <bram@vim.org>
date Wed, 06 Feb 2013 16:26:26 +0100
parents 9867f92c9b9f
children 50dbef5e774a
line wrap: on
line diff
--- 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;