1
0
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:
Chris Cummer 2018-05-14 12:12:07 -07:00
parent 30af259f3e
commit c7ff101e08
2 changed files with 5 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func (widget *Widget) openPRs(repo *GithubRepo, username string) string {
} }
func (widget *Widget) prsForReview(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" return " [grey]none[white]\n"
} }

View File

@ -17,6 +17,7 @@ const helpText = `
/: Show/hide this help window /: Show/hide this help window
h: Previous git repository h: Previous git repository
l: Next git repository l: Next git repository
r: Refresh the data
arrow left: Previous git repository arrow left: Previous git repository
arrow right: Next git repository arrow right: Next git repository
@ -104,6 +105,9 @@ func (widget *Widget) keyboardIntercept(event *tcell.EventKey) *tcell.EventKey {
case "l": case "l":
widget.Next() widget.Next()
return nil return nil
case "r":
widget.Refresh()
return nil
} }
switch event.Key() { switch event.Key() {