From 2c9b02039bac81cb32309bd0d4e2b08191356b9c Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 26 Feb 2021 17:21:59 +0900 Subject: commands: Implement join_selections. --- helix-core/src/state.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'helix-core') diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs index 90e75eb4..55ca0673 100644 --- a/helix-core/src/state.rs +++ b/helix-core/src/state.rs @@ -292,7 +292,8 @@ fn categorize(ch: char) -> Category { } } -fn skip_over_next(slice: RopeSlice, pos: &mut usize, fun: F) +#[inline] +pub fn skip_over_next(slice: RopeSlice, pos: &mut usize, fun: F) where F: Fn(char) -> bool, { @@ -306,7 +307,8 @@ where } } -fn skip_over_prev(slice: RopeSlice, pos: &mut usize, fun: F) +#[inline] +pub fn skip_over_prev(slice: RopeSlice, pos: &mut usize, fun: F) where F: Fn(char) -> bool, { -- cgit v1.2.3-70-g09d2