Make skip_levels a u8

pull/4334/head
A-Walrus 2 years ago committed by Blaž Hrastnik
parent 3ba665d804
commit 2c36e33e0a

@ -465,7 +465,8 @@ impl EditorView {
return; 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 // 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. // extra loops if the code is deeply nested.

@ -558,7 +558,7 @@ impl Default for WhitespaceCharacters {
pub struct IndentGuidesConfig { pub struct IndentGuidesConfig {
pub render: bool, pub render: bool,
pub character: char, pub character: char,
pub skip_levels: usize, pub skip_levels: u8,
} }
impl Default for IndentGuidesConfig { impl Default for IndentGuidesConfig {

Loading…
Cancel
Save