diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-02-16 15:17:44 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-02-16 15:17:44 +1100 |
commit | ad93b4c863dfaa6a1cb6bb740d0dba87fef14404 (patch) | |
tree | 125d6bf54cdbf582d689cfe62e630866d7fc2a8e /pkg/gui/recent_repos_panel.go | |
parent | 198cbee498e9201b1f12514f909eb3da98db5ec7 (diff) |
consider whether the view has focus when rendering the contents of a view
Diffstat (limited to 'pkg/gui/recent_repos_panel.go')
-rw-r--r-- | pkg/gui/recent_repos_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/recent_repos_panel.go b/pkg/gui/recent_repos_panel.go index e14a917eb..6108b737c 100644 --- a/pkg/gui/recent_repos_panel.go +++ b/pkg/gui/recent_repos_panel.go @@ -15,7 +15,7 @@ type recentRepo struct { } // GetDisplayStrings returns the path from a recent repo. -func (r *recentRepo) GetDisplayStrings() []string { +func (r *recentRepo) GetDisplayStrings(isFocused bool) []string { yellow := color.New(color.FgMagenta) base := filepath.Base(r.path) path := yellow.Sprint(r.path) |