We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 948a5c8 commit fdec6b4Copy full SHA for fdec6b4
tmux/list.go
@@ -147,6 +147,12 @@ func List() ([]*TmuxSession, error) {
147
sessions = append(sessions, session)
148
}
149
sort.Slice(sessions, func(i, j int) bool {
150
+ if sessions[i].LastAttached == nil {
151
+ return false
152
+ }
153
+ if sessions[j].LastAttached == nil {
154
+ return true
155
156
return sessions[j].LastAttached.Before(*sessions[i].LastAttached)
157
})
158
0 commit comments