diff src/option.c @ 2492:c945fdb34ce3 vim73

Disallow setting 'ambiwidth' to "double" when 'listchars' or 'fillchars' contains a character that would become double width.
author Bram Moolenaar <bram@vim.org>
date Wed, 04 Aug 2010 20:55:44 +0200
parents a8a010cdd71b
children 073ff46fe397
line wrap: on
line diff
--- a/src/option.c
+++ b/src/option.c
@@ -5745,6 +5745,12 @@ did_set_string_option(opt_idx, varp, new
     {
 	if (check_opt_strings(p_ambw, p_ambw_values, FALSE) != OK)
 	    errmsg = e_invarg;
+	else if (set_chars_option(&p_lcs) != NULL)
+	    errmsg = (char_u *)_("E834: Conflicts with value of 'listchars'");
+# if defined(FEAT_WINDOWS) || defined(FEAT_FOLDING)
+	else if (set_chars_option(&p_fcs) != NULL)
+	    errmsg = (char_u *)_("E835: Conflicts with value of 'fillchars'");
+# endif
     }
 #endif