From 342e59727addf8b3bc4dd93d610257100e754c67 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 11 Mar 2023 18:05:42 -0500 Subject: [PATCH] Update commands to use x instead of due to new kak change --- src/box_.rs | 8 ++++---- src/invert.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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 = {