Skip to content

Commit 2c36e33

Browse files
A-Walrusarchseer
authored andcommitted
Make skip_levels a u8
1 parent 3ba665d commit 2c36e33

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

helix-term/src/ui/editor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ impl Default for WhitespaceCharacters {
558558
pub struct IndentGuidesConfig {
559559
pub render: bool,
560560
pub character: char,
561-
pub skip_levels: usize,
561+
pub skip_levels: u8,
562562
}
563563

564564
impl Default for IndentGuidesConfig {

0 commit comments

Comments
 (0)