TextEditor: Two style fixes.

This commit is contained in:
Stephan Aßmus
2014-01-26 11:24:56 +01:00
parent aa1800bb89
commit 9de9ccde67
+2 -4
View File
@@ -161,8 +161,7 @@ TextEditor::KeyDown(KeyEvent event)
if (HasSelection() && !select) { if (HasSelection() && !select) {
_SetCaretOffset( _SetCaretOffset(
std::min(fSelection.Caret(), fSelection.Anchor()), std::min(fSelection.Caret(), fSelection.Anchor()),
true, false, true true, false, true);
);
} else } else
_SetCaretOffset(fSelection.Caret() - 1, true, select, true); _SetCaretOffset(fSelection.Caret() - 1, true, select, true);
break; break;
@@ -171,8 +170,7 @@ TextEditor::KeyDown(KeyEvent event)
if (HasSelection() && !select) { if (HasSelection() && !select) {
_SetCaretOffset( _SetCaretOffset(
std::max(fSelection.Caret(), fSelection.Anchor()), std::max(fSelection.Caret(), fSelection.Anchor()),
true, false, true true, false, true);
);
} else } else
_SetCaretOffset(fSelection.Caret() + 1, true, select, true); _SetCaretOffset(fSelection.Caret() + 1, true, select, true);
break; break;