aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/movement.rs
diff options
context:
space:
mode:
authorIvan Tham2021-06-05 12:18:27 +0000
committerGitHub2021-06-05 12:18:27 +0000
commit6254720f53a4c1bb3ae416363b2a8bd472455e8b (patch)
tree303abd5c6c8706a21111c944ce9ad9329efbc404 /helix-core/src/movement.rs
parent407b37c3279bfd0ae2bf756bc022d47d5db446d9 (diff)
Add unreachable context
Better error for #123
Diffstat (limited to 'helix-core/src/movement.rs')
-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)
}
}