From 2c36e33e0ac55d01baacb9714d9d77d7dd532d98 Mon Sep 17 00:00:00 2001 From: A-Walrus Date: Tue, 11 Oct 2022 10:00:41 +0300 Subject: Make skip_levels a u8 --- helix-term/src/ui/editor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'helix-term/src') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index c6a83546..e05136d0 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -465,7 +465,8 @@ impl EditorView { return; } - let starting_indent = (offset.col / tab_width) + config.indent_guides.skip_levels; + let starting_indent = + (offset.col / tab_width) + config.indent_guides.skip_levels as usize; // TODO: limit to a max indent level too. It doesn't cause visual artifacts but it would avoid some // extra loops if the code is deeply nested. -- cgit v1.2.3-70-g09d2