Find word boundary right in visual space. Returns a visual position.
(raw: &str, visual_pos: usize)
| 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. |