diff --git a/src/box_.rs b/src/box_.rs index e565a81..424a578 100644 --- a/src/box_.rs +++ b/src/box_.rs @@ -70,10 +70,10 @@ fn boxed_selections(options: &Options) -> Result, KakError> { let whole_line_selection_command = if options.no_newline { // Select everything and only keep non-newlines - "s^[^\\n]+" + "xs^[^\\n]+" } else { // Select everything and split - "" + "x" }; // Whole-row selections split on newline @@ -128,11 +128,11 @@ fn boxed_selections(options: &Options) -> Result, KakError> { /// Returns a vec of `selections_desc` of the intersection of the bounding box and the component rows /// -/// This function takes a selection desc, and its whole-row split selections (``). +/// This function takes a selection desc, and its whole-row split selections (`x`). /// For each whole-row (col 1 to max col) selection, it finds the intersection between the min col and max col in `selection_desc` /// /// * `selection_desc` - The base (possibly multiline) `selection_desc` -/// * `selections_desc_rows` - Vec of above `selection_desc` split by line (``) +/// * `selections_desc_rows` - Vec of above `selection_desc` split by line (`x`) fn to_boxed_selections( selection_desc: SD1, selections_desc_rows: &[SD2], diff --git a/src/invert.rs b/src/invert.rs index 0314c64..df7246b 100644 --- a/src/invert.rs +++ b/src/invert.rs @@ -29,9 +29,9 @@ pub fn invert(options: &Options) -> Result { // Select everything and split (false, false) => "%", // Select entire line, then remove newline - (true, true) => "s^[^\\n]+", + (true, true) => "xs^[^\\n]+", // Select entire line, including newline - (true, false) => "", + (true, false) => "x", }; let document_descs: Vec = {