1
0
mirror of synced 2024-11-28 17:40:51 +01:00

fix: New lines appearing in pattern editor when switching provider

This commit is contained in:
WerWolv 2023-04-13 15:03:50 +02:00
parent ffafb05d3d
commit 2829bf2640

View File

@ -799,7 +799,7 @@ namespace hex::plugin::builtin {
if (oldProvider != nullptr) ProviderExtraData::get(oldProvider).patternLanguage.sourceCode = this->m_textEditor.GetText();
if (newProvider != nullptr)
this->m_textEditor.SetText(ProviderExtraData::get(newProvider).patternLanguage.sourceCode);
this->m_textEditor.SetText(wolv::util::trim(ProviderExtraData::get(newProvider).patternLanguage.sourceCode));
else
this->m_textEditor.SetText("");
}