(&self, input: &str, cursor: usize)
| 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 | } |
no outgoing calls
no test coverage detected