on master help sign in
Make skip_levels a u8
commit2c36e33e0ac55d01baacb9714d9d77d7dd532d98 authorA-Walrus <ofek.r.guy@gmail.com> dateTue 11 Oct 2022, 10:00 (4 years ago) parent3ba665d
2 files changed+3−2
helix-term/src/ui/editor.rs+2−1 helix-view/src/editor.rs+1−1
helix-term/src/ui/editor.rs+2−1
@@ -465,7 +465,8 @@ impl EditorView {
465465 return;
466466 }
467467
468− let starting_indent = (offset.col / tab_width) + config.indent_guides.skip_levels;
468+ let starting_indent =
469+ (offset.col / tab_width) + config.indent_guides.skip_levels as usize;
469470 // TODO: limit to a max indent level too. It doesn't cause visual artifacts but it would avoid some
470471 // extra loops if the code is deeply nested.
471472
helix-view/src/editor.rs+1−1
@@ -558,7 +558,7 @@ impl Default for WhitespaceCharacters {
558558pub struct IndentGuidesConfig {
559559 pub render: bool,
560560 pub character: char,
561− pub skip_levels: usize,
561+ pub skip_levels: u8,
562562}
563563
564564impl Default for IndentGuidesConfig {