Skip to main content

current_prefix

Function current_prefix 

Source
pub fn current_prefix(text: &str, cursor: usize) -> String
Expand description

Returns the run of word characters ending immediately before cursor, where cursor is a character index into text.