1
0
forked from aniani/vim

Disallow setting 'ambiwidth' to "double" when 'listchars' or 'fillchars'

contains a character that would become double width.
This commit is contained in:
Bram Moolenaar
2010-08-04 20:55:44 +02:00
parent e4ce65d445
commit 5c3bd0a0fb
2 changed files with 10 additions and 1 deletions

View File

@@ -5745,6 +5745,12 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
{
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