Skip to content

Commit bbfeafd

Browse files
committed
(rename) will_find_char -> find_char
method name makes it sound like it would be returning a boolean.
1 parent 72a843c commit bbfeafd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

helix-term/src/commands.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ fn extend_next_long_word_end(cx: &mut CommandContext) {
11871187
extend_word_impl(cx, movement::move_next_long_word_end)
11881188
}
11891189

1190-
fn will_find_char<F>(cx: &mut CommandContext, search_fn: F, inclusive: bool, extend: bool)
1190+
fn find_char<F>(cx: &mut CommandContext, search_fn: F, inclusive: bool, extend: bool)
11911191
where
11921192
F: Fn(RopeSlice, char, usize, usize, bool) -> Option<usize> + 'static,
11931193
{
@@ -1306,35 +1306,35 @@ fn find_prev_char_impl(
13061306
}
13071307

13081308
fn find_till_char(cx: &mut CommandContext) {
1309-
will_find_char(cx, find_next_char_impl, false, false)
1309+
find_char(cx, find_next_char_impl, false, false)
13101310
}
13111311

13121312
fn find_next_char(cx: &mut CommandContext) {
1313-
will_find_char(cx, find_next_char_impl, true, false)
1313+
find_char(cx, find_next_char_impl, true, false)
13141314
}
13151315

13161316
fn extend_till_char(cx: &mut CommandContext) {
1317-
will_find_char(cx, find_next_char_impl, false, true)
1317+
find_char(cx, find_next_char_impl, false, true)
13181318
}
13191319

13201320
fn extend_next_char(cx: &mut CommandContext) {
1321-
will_find_char(cx, find_next_char_impl, true, true)
1321+
find_char(cx, find_next_char_impl, true, true)
13221322
}
13231323

13241324
fn till_prev_char(cx: &mut CommandContext) {
1325-
will_find_char(cx, find_prev_char_impl, false, false)
1325+
find_char(cx, find_prev_char_impl, false, false)
13261326
}
13271327

13281328
fn find_prev_char(cx: &mut CommandContext) {
1329-
will_find_char(cx, find_prev_char_impl, true, false)
1329+
find_char(cx, find_prev_char_impl, true, false)
13301330
}
13311331

13321332
fn extend_till_prev_char(cx: &mut CommandContext) {
1333-
will_find_char(cx, find_prev_char_impl, false, true)
1333+
find_char(cx, find_prev_char_impl, false, true)
13341334
}
13351335

13361336
fn extend_prev_char(cx: &mut CommandContext) {
1337-
will_find_char(cx, find_prev_char_impl, true, true)
1337+
find_char(cx, find_prev_char_impl, true, true)
13381338
}
13391339

13401340
fn repeat_last_motion(cx: &mut CommandContext) {

0 commit comments

Comments
 (0)