summaryrefslogtreecommitdiff
path: root/helix-core/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r--helix-core/src/state.rs6
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,
{