MCPcopy Create free account
hub / github.com/bajrangCoder/setu / trigger_search

Method trigger_search

src/views/response_view.rs:215–222  ·  view source on GitHub ↗
(&mut self, window: &mut Window, _cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

213 .find('\n')
214 .map(|offset| line_start + offset + 1)
215 .unwrap_or(content.len());
216 let mut line_end = line_end_with_newline;
217 if line_end > line_start && content.as_bytes()[line_end - 1] == b'\n' {
218 line_end -= 1;
219 }
220 if line_end > line_start && content.as_bytes()[line_end - 1] == b'\r' {
221 line_end -= 1;
222 }
223
224 if line_end == line_start {
225 rows.push(VirtualTextRow {

Callers 1

render_tab_contentMethod · 0.45

Calls 1

trigger_editor_searchFunction · 0.85

Tested by

no test coverage detected