From 9de9ccde677d2f197e3470dc6cc03691ce8aeeb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 26 Jan 2014 11:24:56 +0100 Subject: [PATCH] TextEditor: Two style fixes. --- src/apps/haiku-depot/textview/TextEditor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;