From 35e8c73f7cff221e3e105cecb6ddaae040226a3b Mon Sep 17 00:00:00 2001 From: paxcut <53811119+paxcut@users.noreply.github.com> Date: Tue, 30 Dec 2025 06:08:18 -0700 Subject: [PATCH] fixing isEmpty again. (#2591) hopefully the last time. (cherry picked from commit 5332a26294c24400e974a295fe99869b82da15e2) --- plugins/ui/source/ui/text_editor/support.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/ui/source/ui/text_editor/support.cpp b/plugins/ui/source/ui/text_editor/support.cpp index cc0c4c9c0..e62ee7e6f 100644 --- a/plugins/ui/source/ui/text_editor/support.cpp +++ b/plugins/ui/source/ui/text_editor/support.cpp @@ -509,9 +509,7 @@ namespace hex::ui { return false; if (size == 0) return true; - if (m_lines[0].empty()) - return true; - return true; + return m_lines[0].empty(); } bool TextEditor::EditorState::operator==(const EditorState &o) const {