From 20ad31b6c84c4a05a36f74f61bc504e912aff800 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 25 Jun 2025 18:38:26 -0600 Subject: [PATCH] AK: Copy escape char when forking SourceGenerator Nobody that calls fork() actually passes a non-default escape char, but in the case that we start doing that, let's avoid nasty surprises --- AK/SourceGenerator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/SourceGenerator.h b/AK/SourceGenerator.h index 285e6e70d5a..367445eef16 100644 --- a/AK/SourceGenerator.h +++ b/AK/SourceGenerator.h @@ -44,7 +44,7 @@ public: [[nodiscard]] SourceGenerator fork() { - return SourceGenerator { m_builder, MUST(m_mapping.clone()), m_opening, m_closing }; + return SourceGenerator { m_builder, MUST(m_mapping.clone()), m_opening, m_closing, m_escape }; } void set(StringView key, String value)