diff --git a/src/apps/haiku-depot/textview/TextEditor.cpp b/src/apps/haiku-depot/textview/TextEditor.cpp index 60e9a01176..4c665b6e58 100644 --- a/src/apps/haiku-depot/textview/TextEditor.cpp +++ b/src/apps/haiku-depot/textview/TextEditor.cpp @@ -161,8 +161,7 @@ TextEditor::KeyDown(KeyEvent event) if (HasSelection() && !select) { _SetCaretOffset( std::min(fSelection.Caret(), fSelection.Anchor()), - true, false, true - ); + true, false, true); } else _SetCaretOffset(fSelection.Caret() - 1, true, select, true); break; @@ -171,8 +170,7 @@ TextEditor::KeyDown(KeyEvent event) if (HasSelection() && !select) { _SetCaretOffset( std::max(fSelection.Caret(), fSelection.Anchor()), - true, false, true - ); + true, false, true); } else _SetCaretOffset(fSelection.Caret() + 1, true, select, true); break;