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 <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
John Scipione 2023-12-01 18:52:08 -05:00 committed by waddlesplash
parent 2e1f37d6de
commit 0509d19b91

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 {