fix: New lines appearing in pattern editor when switching provider
This commit is contained in:
parent
ffafb05d3d
commit
2829bf2640
@ -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("");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user