From 44ddf19ec0ff59c969658ec7d9ed42070c59c51b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 21 Jun 2022 22:15:25 +0100 Subject: patch 8.2.5146: memory leak when substitute expression nests Problem: Memory leak when substitute expression nests. Solution: Use an array of expression results. --- src/errors.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/errors.h') diff --git a/src/errors.h b/src/errors.h index 109d9e8348..43a1c9b955 100644 --- a/src/errors.h +++ b/src/errors.h @@ -3300,3 +3300,7 @@ EXTERN char e_could_not_reset_handler_for_timeout_str[] EXTERN char e_could_not_check_for_pending_sigalrm_str[] INIT(= N_("E1289: Could not check for pending SIGALRM: %s")); #endif +#ifdef FEAT_EVAL +EXTERN char e_substitute_nesting_too_deep[] + INIT(= N_("E1290: substitute nesting too deep")); +#endif -- cgit v1.2.3