From 2829bf2640dfa7b0072ec268d5d6395bcf0d69fb Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 13 Apr 2023 15:03:50 +0200 Subject: [PATCH] fix: New lines appearing in pattern editor when switching provider --- plugins/builtin/source/content/views/view_pattern_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(""); }