mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
Make skip_levels a u8
This commit is contained in:
parent
3ba665d804
commit
2c36e33e0a
@ -465,7 +465,8 @@ pub fn render_text_highlights<H: Iterator<Item = HighlightEvent>>(
|
|||||||
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 @@ fn default() -> Self {
|
|||||||
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…
Reference in New Issue
Block a user