patch 8.2.2497: no error when using more than one character for a register
Problem: No error when using more than one character for a register name.
Solution: In Vim9 script check for a single character string. (closes #7814)
Fix that VAR_BOOL and VAR_SPECIAL are not considered equal.
diff --git a/src/errors.h b/src/errors.h
index aaf7e55..39eca7e 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -359,3 +359,5 @@
INIT(= N_("E1160: Cannot use a default for variable arguments"));
EXTERN char e_cannot_json_encode_str[]
INIT(= N_("E1161: Cannot json encode a %s"));
+EXTERN char e_register_name_must_be_one_char_str[]
+ INIT(= N_("E1162: Register name must be one character: %s"));