summaryrefslogtreecommitdiffstats
path: root/pkg/gui/recent_repos_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/recent_repos_panel.go')
-rw-r--r--pkg/gui/recent_repos_panel.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/recent_repos_panel.go b/pkg/gui/recent_repos_panel.go
index eb646a752..d1ac4ea30 100644
--- a/pkg/gui/recent_repos_panel.go
+++ b/pkg/gui/recent_repos_panel.go
@@ -4,17 +4,17 @@ import (
"os"
"path/filepath"
- "github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazygit/pkg/commands"
"github.com/jesseduffield/lazygit/pkg/env"
+ "github.com/jesseduffield/lazygit/pkg/gui/style"
"github.com/jesseduffield/lazygit/pkg/utils"
)
func (gui *Gui) handleCreateRecentReposMenu() error {
recentRepoPaths := gui.Config.GetAppState().RecentRepos
reposCount := utils.Min(len(recentRepoPaths), 20)
- yellow := color.New(color.FgMagenta)
+
// we won't show the current repo hence the -1
menuItems := make([]*menuItem, reposCount-1)
for i, path := range recentRepoPaths[1:reposCount] {
@@ -22,7 +22,7 @@ func (gui *Gui) handleCreateRecentReposMenu() error {
menuItems[i] = &menuItem{
displayStrings: []string{
filepath.Base(path),
- yellow.Sprint(path),
+ style.FgMagenta.Sprint(path),
},
onPress: func() error {
// if we were in a submodule, we want to forget about that stack of repos