MCPcopy Create free account
hub / github.com/SamNet-dev/snix / prevTab

Function prevTab

tui/app.go:247–254  ·  view source on GitHub ↗
(t tab)

Source from the content-addressed store, hash-verified

245}
246
247func prevTab(t tab) tab {
248 for i, x := range tabOrder {
249 if x == t {
250 return tabOrder[(i-1+len(tabOrder))%len(tabOrder)]
251 }
252 }
253 return tabHome
254}
255
256// shutdown kills the engine subprocess if one is running, then quits the
257// Bubble Tea program. Idempotent — safe to call when no engine is running.

Callers 1

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected