summaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorA-Walrus2022-10-10 08:13:25 +0000
committerBlaž Hrastnik2022-10-17 15:38:16 +0000
commit3ba665d804c8d88bc3d59a52296f349acdb6d436 (patch)
tree3a76e46fb28d90aa7e4c0a716dd14bb9355db084 /helix-view/src/editor.rs
parent4e691d62470a4f92ee5bf2e2609a97d0e1ec832c (diff)
Fix rendering of lines longer than 2^16
Before things would be cast to u16 earlier than needed, which would cause problems for insanely long lines (longer than 2^16 ~ 65 thousand)
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 60b3880c..dd1e30f9 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -558,7 +558,7 @@ impl Default for WhitespaceCharacters {
pub struct IndentGuidesConfig {
pub render: bool,
pub character: char,
- pub skip_levels: u16,
+ pub skip_levels: usize,
}
impl Default for IndentGuidesConfig {