get_cursor_position

Function get_cursor_position 

Source
pub fn get_cursor_position(content: &str) -> Option<usize>
Expand description

Find the cursor position in a file This looks for a special marker like “// CURSOR” and returns its position