Skip to main content

changes_more_than_indentation

Function changes_more_than_indentation 

Source
pub fn changes_more_than_indentation(old: &str, new: &str) -> bool
Expand description

Whether new differs from old in more than leading whitespace.

Used to tell an indent filter (an external: rung of format.indent, which is specified to adjust leading whitespace only) from a reformatter that was pointed at the wrong option. A tool that rewrites content is not an indent filter, and running it from = would break the operator’s contract with motions.