MCPcopy Create free account
hub / github.com/GCWing/BitFun / cursor_in_command

Method cursor_in_command

src/apps/cli/src/ui/command_menu.rs:274–279  ·  view source on GitHub ↗
(&self, input: &str, cursor: usize)

Source from the content-addressed store, hash-verified

272 }
273
274 fn cursor_in_command(&self, input: &str, cursor: usize) -> bool {
275 match input.chars().position(|c| c.is_whitespace()) {
276 Some(space_idx) => cursor <= space_idx,
277 None => true,
278 }
279 }
280}

Callers 1

update_with_commandsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected