From e7494be5e7b27ff4e08ae4ed1379622e1677b460 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 10 Apr 2023 16:50:23 +0200 Subject: [PATCH] fix: Last line of patterns going missing in projects with multiple files Fixes #1012 --- plugins/builtin/source/content/views/view_pattern_editor.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index ec5b5f2af..e0f07a138 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -802,10 +802,6 @@ namespace hex::plugin::builtin { this->m_textEditor.SetText(ProviderExtraData::get(newProvider).patternLanguage.sourceCode); else this->m_textEditor.SetText(""); - - auto lines = this->m_textEditor.GetTextLines(); - lines.pop_back(); - this->m_textEditor.SetTextLines(lines); } }); }