From e5d05afafb7856cc9ec5436e81a30fcb0a4871c4 Mon Sep 17 00:00:00 2001 From: Francis Chua Date: Sun, 12 Nov 2023 00:49:15 +0000 Subject: [PATCH] format --- yazi-core/src/input/commands/forward.rs | 3 ++- yazi-core/src/input/input.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/yazi-core/src/input/commands/forward.rs b/yazi-core/src/input/commands/forward.rs index 9690762d..52970be0 100644 --- a/yazi-core/src/input/commands/forward.rs +++ b/yazi-core/src/input/commands/forward.rs @@ -20,7 +20,8 @@ impl Input { let snap = self.snap(); let idx = snap.idx(snap.cursor).unwrap_or(snap.len()); - let step = Self::find_word_boundary(snap.value[idx..].chars(), opt.end_of_word, opt.end_of_word); + let step = + Self::find_word_boundary(snap.value[idx..].chars(), opt.end_of_word, opt.end_of_word); self.move_(step as isize) } } diff --git a/yazi-core/src/input/input.rs b/yazi-core/src/input/input.rs index 8e2018cf..7e34fa09 100644 --- a/yazi-core/src/input/input.rs +++ b/yazi-core/src/input/input.rs @@ -79,7 +79,7 @@ impl Input { let Some(prev) = prev else { return 0; }; - + // Move until we see a different character class or the end of the iterator. input.take_while(|c| CharKind::new(*c) == CharKind::new(prev)).count() }