BTextView: Stylish fix, -x is clear we don't need -1 * x

Change-Id: I38a5e6c88e2ba3b2f82c49aa760942e1799a7595
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7171
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
John Scipione
2023-12-05 16:50:27 +00:00
committed by waddlesplash
parent 2e1f37d6de
commit 0509d19b91
+2 -2
View File
@@ -3343,7 +3343,7 @@ BTextView::_HandleArrowKey(uint32 arrowKey, int32 modifiers)
switch (arrowKey) {
case B_LEFT_ARROW:
if (!fEditable && !fSelectable)
_ScrollBy(-1 * kHorizontalScrollBarStep, 0);
_ScrollBy(-kHorizontalScrollBarStep, 0);
else if (fSelStart != fSelEnd && !shiftKeyDown)
fCaretOffset = fSelStart;
else {
@@ -3398,7 +3398,7 @@ BTextView::_HandleArrowKey(uint32 arrowKey, int32 modifiers)
case B_UP_ARROW:
{
if (!fEditable && !fSelectable)
_ScrollBy(0, -1 * kVerticalScrollBarStep);
_ScrollBy(0, -kVerticalScrollBarStep);
else if (fSelStart != fSelEnd && !shiftKeyDown)
fCaretOffset = fSelStart;
else {