From 3ba665d804c8d88bc3d59a52296f349acdb6d436 Mon Sep 17 00:00:00 2001 From: A-Walrus Date: Mon, 10 Oct 2022 11:13:25 +0300 Subject: 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) --- helix-view/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view/src') 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 { -- cgit v1.2.3-70-g09d2