Ran go fmt to clean it up a bit.

This commit is contained in:
hmmmmmmmm 2019-01-31 17:27:53 +00:00 committed by GitHub
parent ff41683113
commit 91de22dab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ func (self *List) Draw(buf *Buffer) {
point := self.Inner.Min point := self.Inner.Min
if self.SelectedRow >= uint(self.Inner.Max.Y)+self.topRow-2 { if self.SelectedRow >= uint(self.Inner.Max.Y)+self.topRow-2 {
self.topRow = self.SelectedRow-uint(self.Inner.Max.Y)+2 self.topRow = self.SelectedRow - uint(self.Inner.Max.Y) + 2
} else if self.SelectedRow < self.topRow { } else if self.SelectedRow < self.topRow {
self.topRow = self.SelectedRow self.topRow = self.SelectedRow
} }
@ -110,6 +110,6 @@ func (self *List) PageDown() { // Down one whole page
self.topRow += uint(self.Inner.Dy()) self.topRow += uint(self.Inner.Dy())
self.SelectedRow = self.topRow self.SelectedRow = self.topRow
} else { // If at last 'page', then select last item. } else { // If at last 'page', then select last item.
self.SelectedRow = uint(len(self.Rows)-1) self.SelectedRow = uint(len(self.Rows) - 1)
} }
} }