Skip to main content

update_input_buffer

Function update_input_buffer 

Source
pub fn update_input_buffer(
    key: KeyEvent,
    buffer: &str,
    cursor: usize,
) -> Option<(String, usize)>
Expand description

Update input buffer based on key event Returns the new buffer content, or None if no change