diff --git a/github/display.go b/github/display.go index 089b7348..045f3b8b 100644 --- a/github/display.go +++ b/github/display.go @@ -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" } diff --git a/github/widget.go b/github/widget.go index 0cfc04e2..abb2e6d1 100644 --- a/github/widget.go +++ b/github/widget.go @@ -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() {