diff options
Diffstat (limited to 'helix-core/src')
-rw-r--r-- | helix-core/src/state.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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<F>(slice: RopeSlice, pos: &mut usize, fun: F) +#[inline] +pub fn skip_over_next<F>(slice: RopeSlice, pos: &mut usize, fun: F) where F: Fn(char) -> bool, { @@ -306,7 +307,8 @@ where } } -fn skip_over_prev<F>(slice: RopeSlice, pos: &mut usize, fun: F) +#[inline] +pub fn skip_over_prev<F>(slice: RopeSlice, pos: &mut usize, fun: F) where F: Fn(char) -> bool, { |