Skip to content

Commit c951371

Browse files
committed
minor style fixup
1 parent 615b4b1 commit c951371

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

views/view.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 The Tcell Authors
1+
// Copyright 2023 The Tcell Authors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use file except in compliance with the License.
@@ -147,7 +147,7 @@ func (v *ViewPort) MakeVisible(x, y int) {
147147
// it cannot scroll away from the content.
148148
func (v *ViewPort) ValidateViewY() {
149149
if v.viewy > v.limy-v.height {
150-
v.viewy = (v.limy - v.height)
150+
v.viewy = v.limy - v.height
151151
}
152152
if v.viewy < 0 {
153153
v.viewy = 0
@@ -158,7 +158,7 @@ func (v *ViewPort) ValidateViewY() {
158158
// it cannot scroll away from the content.
159159
func (v *ViewPort) ValidateViewX() {
160160
if v.viewx > v.limx-v.width {
161-
v.viewx = (v.limx - v.width)
161+
v.viewx = v.limx - v.width
162162
}
163163
if v.viewx < 0 {
164164
v.viewx = 0

0 commit comments

Comments
 (0)