feat(options)!: remove compatible behaviours for vim 5.0 and earlier

This commit is contained in:
Lewis Russell
2023-07-17 14:27:21 +01:00
committed by GitHub
parent 98b22867c3
commit 881d17a113
11 changed files with 83 additions and 144 deletions

View File

@@ -1664,7 +1664,7 @@ const char *did_set_foldcolumn(optset_T *args)
const char *did_set_backspace(optset_T *args FUNC_ATTR_UNUSED)
{
if (ascii_isdigit(*p_bs)) {
if (*p_bs > '3' || p_bs[1] != NUL) {
if (*p_bs != '2') {
return e_invarg;
}
} else if (check_opt_strings(p_bs, p_bs_values, true) != OK) {