diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index e0f07a138..598ad0e0c 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -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(""); }