@@ -315,7 +315,7 @@ fn _find_char<F>(cx: &mut Context, search_fn: F, inclusive: bool, extend: bool)
315315where
316316 // TODO: make an options struct for and abstract this Fn into a searcher type
317317 // use the definition for w/b/e too
318− F: Fn(RopeSlice, char, usize, usize, bool) -> Option<usize>,
318+ F: Fn(RopeSlice, char, usize, usize, bool) -> Option<usize> + 'static,
319319{
320320 // TODO: count is reset to 1 before next key so we move it into the closure here.
321321 // Would be nice to carry over.
@@ -332,7 +332,7 @@ where
332332 let text = doc.text().slice(..);
333333
334334 let selection = doc.selection(view.id).transform(|mut range| {
335− search::find_nth_next(text, ch, range.head, count, inclusive).map_or(range, |pos| {
335+ search_fn(text, ch, range.head, count, inclusive).map_or(range, |pos| {
336336 if extend {
337337 Range::new(range.anchor, pos)
338338 } else {