mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Apparently I'm easily confused by comparison operators
This commit is contained in:
parent
30af259f3e
commit
c7ff101e08
@ -51,7 +51,7 @@ func (widget *Widget) openPRs(repo *GithubRepo, username string) string {
|
||||
}
|
||||
|
||||
func (widget *Widget) prsForReview(repo *GithubRepo, username string) string {
|
||||
if len(repo.PullRequests) > 0 {
|
||||
if len(repo.PullRequests) == 0 {
|
||||
return " [grey]none[white]\n"
|
||||
}
|
||||
|
||||
|
@ -17,6 +17,7 @@ const helpText = `
|
||||
/: Show/hide this help window
|
||||
h: Previous git repository
|
||||
l: Next git repository
|
||||
r: Refresh the data
|
||||
|
||||
arrow left: Previous git repository
|
||||
arrow right: Next git repository
|
||||
@ -104,6 +105,9 @@ func (widget *Widget) keyboardIntercept(event *tcell.EventKey) *tcell.EventKey {
|
||||
case "l":
|
||||
widget.Next()
|
||||
return nil
|
||||
case "r":
|
||||
widget.Refresh()
|
||||
return nil
|
||||
}
|
||||
|
||||
switch event.Key() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user