pub fn preview_register(s: &str) -> StringExpand 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.