Skip to main content

feed_input

Function feed_input 

Source
pub fn feed_input<H: Host>(
    editor: &mut Editor<Buffer, H>,
    input: PlannedInput,
) -> bool
Expand description

Drive the vim FSM with a hjkl_engine::PlannedInput. Translates the planned input to engine hjkl_engine::Input, dispatches through dispatch_input, and emits cursor-shape changes.

Returns true if the engine consumed the keystroke. Returns false for variants the legacy FSM does not dispatch (Mouse, Paste, FocusGained, FocusLost, Resize) and for special-key variants that map to Key::Null.