File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- // Copyright 2016 The Tcell Authors
1
+ // Copyright 2023 The Tcell Authors
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use file except in compliance with the License.
@@ -147,7 +147,7 @@ func (v *ViewPort) MakeVisible(x, y int) {
147
147
// it cannot scroll away from the content.
148
148
func (v * ViewPort ) ValidateViewY () {
149
149
if v .viewy > v .limy - v .height {
150
- v .viewy = ( v .limy - v .height )
150
+ v .viewy = v .limy - v .height
151
151
}
152
152
if v .viewy < 0 {
153
153
v .viewy = 0
@@ -158,7 +158,7 @@ func (v *ViewPort) ValidateViewY() {
158
158
// it cannot scroll away from the content.
159
159
func (v * ViewPort ) ValidateViewX () {
160
160
if v .viewx > v .limx - v .width {
161
- v .viewx = ( v .limx - v .width )
161
+ v .viewx = v .limx - v .width
162
162
}
163
163
if v .viewx < 0 {
164
164
v .viewx = 0
You can’t perform that action at this time.
0 commit comments