diff --git a/plugins/ui/source/ui/text_editor/support.cpp b/plugins/ui/source/ui/text_editor/support.cpp index afef55e54..9090d036a 100644 --- a/plugins/ui/source/ui/text_editor/support.cpp +++ b/plugins/ui/source/ui/text_editor/support.cpp @@ -514,9 +514,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 {