Skip to main content

delete_to_eol

Function delete_to_eol 

Source
pub fn delete_to_eol<H: Host>(ed: &mut Editor<View, H>)
Expand description

D / C — delete from cursor to end of line through the edit funnel. Pushes the deleted text to the clipboard via record_yank_to_host and the textarea’s yank buffer (still observed by p/P until the paste path is ported). Cursor lands at the deletion start so the caller can decide whether to step it left (D) or open insert mode (C).