TextEditor: Two style fixes.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user