Skip to content

Commit 621efe8

Browse files
committed
Add indications of which screen is the currently used one.
1 parent 706040c commit 621efe8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

select.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,15 @@ func (m model) View() string {
123123
s := "Which screen do you want to use?\n\n"
124124
for i:= 0; i < len(m.displays); i++ {
125125
display := m.displays[i]
126+
current := ""
127+
if m.displays[i].current {
128+
current = "(current)"
129+
}
126130
cursor := " "
127131
if (m.selected == i) {
128132
cursor = "> "
129133
}
130-
s += fmt.Sprintf("%s %s\n", cursor, display.name)
134+
s += fmt.Sprintf("%s %s %s\n", cursor, display.name, current)
131135
}
132136

133137
if(m.screen != "") {

0 commit comments

Comments
 (0)