Skip to main content

reflow_range

Function reflow_range 

Source
pub fn reflow_range(lines: &[&str], cfg: ReflowConfig<'_>) -> Vec<String>
Expand description

Reflow a whole range: paragraphs found, fillable ones filled, everything else carried through.

Returns the replacement lines for the range. A range that reflows to itself returns an equal Vec, which is what lets the operator skip the edit entirely (RF.2) rather than pushing a no-op undo step.