refactor(encoding): remove redundant vim_isprintc_strict

This function is identical to vim_isprintc when encoding=utf-8 is used
As this is the only internal encoding nvim supports, it is now redundant

ref #2905
This commit is contained in:
bfredl
2023-11-26 21:53:07 +01:00
parent 27fc11c048
commit a917da4ca5
3 changed files with 3 additions and 19 deletions

View File

@@ -3881,7 +3881,7 @@ static char *get_syn_options(char *arg, syn_opt_arg_T *opt, int *conceal_char, i
// cchar=?
*conceal_char = utf_ptr2char(arg + 6);
arg += utfc_ptr2len(arg + 6) - 1;
if (!vim_isprintc_strict(*conceal_char)) {
if (!vim_isprintc(*conceal_char)) {
emsg(_(e_invalid_cchar_value));
return NULL;
}