-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better ui #14
Conversation
librecursebuster/ui.go
Outdated
} | ||
|
||
// ScrollView by a given offset | ||
func sScrollView(v *ui.View, dy int) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sScrollView
is unused
librecursebuster/ui.go
Outdated
_, y := v.Size() | ||
ox, oy := v.Origin() | ||
v.Autoscroll = false | ||
v.SetOrigin(ox, oy+dy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of v.SetOrigin
is not checked
ox, oy := v.Origin() | ||
v.Autoscroll = false | ||
e := v.SetOrigin(ox, oy+dy) | ||
if e != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty branch
No description provided.