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
This commit is contained in:
Andrew Kaster 2025-06-25 18:38:26 -06:00 committed by Andrew Kaster
commit 20ad31b6c8
Notes: github-actions[bot] 2025-06-30 17:40:25 +00:00

View file

@ -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)