MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / find_word_boundary_right_visual

Function find_word_boundary_right_visual

src/text_input.rs:2562–2567  ·  view source on GitHub ↗

Find word boundary right in visual space. Returns a visual position.

(raw: &str, visual_pos: usize)

Source from the content-addressed store, hash-verified

2560 /// Find word boundary right in visual space.
2561 /// Returns a visual position.
2562 pub fn find_word_boundary_right_visual(raw: &str, visual_pos: usize) -> usize {
2563 let cp = cursor_to_content(raw, visual_pos);
2564 let stripped = strip_styling(raw);
2565 let boundary = super::find_word_boundary_right(&stripped, cp);
2566 content_to_cursor(raw, boundary, false)
2567 }
2568
2569 /// Find word delete boundary right in visual space (skips word then spaces).
2570 /// Used for Ctrl+Delete to delete word + trailing whitespace.

Calls 4

cursor_to_contentFunction · 0.85
strip_stylingFunction · 0.85
find_word_boundary_rightFunction · 0.85
content_to_cursorFunction · 0.85

Tested by 1