MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / navigate

Method navigate

crates/opencode-tui/src/router.rs:46–51  ·  view source on GitHub ↗
(&mut self, route: Route)

Source from the content-addressed store, hash-verified

44 }
45
46 pub fn navigate(&mut self, route: Route) {
47 if self.current != route {
48 self.history.push(self.current.clone());
49 self.current = route;
50 }
51 }
52
53 pub fn go_back(&mut self) -> bool {
54 if self.history.len() > 1 {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected