diff options
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/movement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/movement.rs b/helix-core/src/movement.rs index dd300caa..ba2e92b9 100644 --- a/helix-core/src/movement.rs +++ b/helix-core/src/movement.rs @@ -189,10 +189,10 @@ fn categorize(ch: char) -> Category { Category::Eol } else if ch.is_ascii_whitespace() { Category::Whitespace + } else if is_word(ch) { + Category::Word } else if ch.is_ascii_punctuation() { Category::Punctuation - } else if ch.is_ascii_alphanumeric() { - Category::Word } else { unreachable!() } |