Skip to content

Commit

Permalink
minor style fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Feb 21, 2023
1 parent 615b4b1 commit c951371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/view.go
@@ -1,4 +1,4 @@
// Copyright 2016 The Tcell Authors
// Copyright 2023 The Tcell Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
Expand Down Expand Up @@ -147,7 +147,7 @@ func (v *ViewPort) MakeVisible(x, y int) {
// it cannot scroll away from the content.
func (v *ViewPort) ValidateViewY() {
if v.viewy > v.limy-v.height {
v.viewy = (v.limy - v.height)
v.viewy = v.limy - v.height
}
if v.viewy < 0 {
v.viewy = 0
Expand All @@ -158,7 +158,7 @@ func (v *ViewPort) ValidateViewY() {
// it cannot scroll away from the content.
func (v *ViewPort) ValidateViewX() {
if v.viewx > v.limx-v.width {
v.viewx = (v.limx - v.width)
v.viewx = v.limx - v.width
}
if v.viewx < 0 {
v.viewx = 0
Expand Down

0 comments on commit c951371

Please sign in to comment.