From c951371181bb4b1387d9010b8081590ae6a48152 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 20 Feb 2023 21:39:19 -0800 Subject: [PATCH] minor style fixup --- views/view.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/view.go b/views/view.go index db08e71..1ab200a 100644 --- a/views/view.go +++ b/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. @@ -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 @@ -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