on master help sign in
Make skip_levels a u8
2c36e33A-Walrus
helix-term/src/ui/editor.rs+2−1
@@ -465,7 +465,8 @@ impl EditorView {
465 return;
465 return;
466 }
466 }
467
467
468+ let starting_indent =
468− let starting_indent = (offset.col / tab_width) + config.indent_guides.skip_levels;
469+ (offset.col / tab_width) + config.indent_guides.skip_levels as usize;
469 // TODO: limit to a max indent level too. It doesn't cause visual artifacts but it would avoid some
470 // TODO: limit to a max indent level too. It doesn't cause visual artifacts but it would avoid some
470 // extra loops if the code is deeply nested.
471 // extra loops if the code is deeply nested.
471
472
helix-view/src/editor.rs+1−1
@@ -558,7 +558,7 @@ impl Default for WhitespaceCharacters {
558pub struct IndentGuidesConfig {
558pub struct IndentGuidesConfig {
559 pub render: bool,
559 pub render: bool,
560 pub character: char,
560 pub character: char,
561− pub skip_levels: usize,
561+ pub skip_levels: u8,
562}
562}
563
563
564impl Default for IndentGuidesConfig {
564impl Default for IndentGuidesConfig {