Skip to main content

command_line_decorations

Function command_line_decorations 

Source
pub fn command_line_decorations(
    line: &str,
    registry: &CommandRegistry,
) -> CommandLineDecorations
Expand description

Compute the live decorations for a : command line (MB.4). line is the text without the leading : (i.e. command_line()). Pure + cheap (one line, no I/O) so it runs on the actor thread each edit.