Highlight stash choice in file listing footer

This commit is contained in:
Christian Rocha 2020-08-21 14:04:46 -04:00 committed by Christian Muehlhaeuser
parent 04b6089bd9
commit 2e16f2682e

View file

@ -718,7 +718,15 @@ func stashHelpViewBuilder(windowWidth int, sections ...string) string {
}
for i := 0; i < len(sections); i++ {
next = stashHelpItemStyle(sections[i])
// If we need this more often we'll formalize something rather than
// use an if clause/switch here.
switch sections[i] {
case "s: stash":
next = greenFg(sections[i])
default:
next = stashHelpItemStyle(sections[i])
}
if i < len(sections)-1 {
next += stashHelpDivider
}