diff options
author | Ivan Tham | 2021-06-05 12:18:27 +0000 |
---|---|---|
committer | GitHub | 2021-06-05 12:18:27 +0000 |
commit | 6254720f53a4c1bb3ae416363b2a8bd472455e8b (patch) | |
tree | 303abd5c6c8706a21111c944ce9ad9329efbc404 /helix-core | |
parent | 407b37c3279bfd0ae2bf756bc022d47d5db446d9 (diff) |
Add unreachable context
Better error for #123
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/movement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/movement.rs b/helix-core/src/movement.rs index d6745fff..297911ae 100644 --- a/helix-core/src/movement.rs +++ b/helix-core/src/movement.rs @@ -199,7 +199,7 @@ fn categorize(ch: char) -> Category { } else if ch.is_ascii_punctuation() { Category::Punctuation } else { - unreachable!() + unreachable!("unknown '{}' character category", ch) } } |