Unnamed repository; edit this file 'description' to name the repository.
Add unreachable context
Better error for #123
Ivan Tham 2021-06-05
parent 407b37c · commit 6254720
-rw-r--r--helix-core/src/movement.rs2
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)
}
}