aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-26 08:21:59 +0000
committerBlaž Hrastnik2021-02-26 08:21:59 +0000
commit2c9b02039bac81cb32309bd0d4e2b08191356b9c (patch)
tree06ae2021109b9a0db5bcfc190345507d8089b077 /helix-core
parent6336c1da20fcb1bad60147255e2805d5699a6401 (diff)
commands: Implement join_selections.
Diffstat (limited to 'helix-core')
-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,
{