Skip to main content

preview_register

Function preview_register 

Source
pub fn preview_register(s: &str) -> String
Expand description

Render a register’s content into a one-line preview (truncated and with newlines escaped). Used by Editor::do_list_registers (:reg) and the picker-source register listing. Moved here from lattice-ui-tui::app in 5.5.E.2.