patch 8.2.2785: Vim9: cannot redirect to local variable
Problem: Vim9: cannot redirect to local variable.
Solution: Compile :redir when redirecting to a variable.
diff --git a/src/errors.h b/src/errors.h
index 1e09186..0781ca1 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -405,3 +405,7 @@
INIT(= N_("E1183: Cannot use a range with an assignment operator: %s"));
EXTERN char e_blob_not_set[]
INIT(= N_("E1184: Blob not set"));
+EXTERN char e_cannot_nest_redir[]
+ INIT(= N_("E1185: Cannot nest :redir"));
+EXTERN char e_missing_redir_end[]
+ INIT(= N_("E1185: Missing :redir END"));