From 914c83420b9901f596bf771ad5f20495de9a070c Mon Sep 17 00:00:00 2001 From: TornaxO7 Date: Fri, 15 Dec 2023 19:05:04 +0100 Subject: fix `:indent-style` crash (#9087) * removing unreachable statement in `:indent-style` * update checks when setting indent line and update docs * `cargo xtask docgen`--- helix-core/src/indent.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-core') diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs index 9333460b..1e90db47 100644 --- a/helix-core/src/indent.rs +++ b/helix-core/src/indent.rs @@ -22,7 +22,7 @@ pub enum IndentStyle { // 16 spaces const INDENTS: &str = " "; -const MAX_INDENT: u8 = 16; +pub const MAX_INDENT: u8 = 16; impl IndentStyle { /// Creates an `IndentStyle` from an indentation string. -- cgit v1.2.3-70-g09d2