From 6ef095e2d3f8e1b02e172e3ed5057278908d3b2d Mon Sep 17 00:00:00 2001 From: chtenb Date: Wed, 8 Nov 2023 17:02:44 +0100 Subject: [PATCH] Extend max tab-width to 64 --- helix-core/src/indent.rs | 5 +++-- helix-core/src/syntax.rs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs index ae26c13e0..fad1595cc 100644 --- a/helix-core/src/indent.rs +++ b/helix-core/src/indent.rs @@ -21,8 +21,9 @@ pub enum IndentStyle { } // 16 spaces -const INDENTS: &str = " "; -pub const MAX_INDENT: u8 = 16; +// TODO: up this to 64 or something +const INDENTS: &str = " "; +pub const MAX_INDENT: u8 = 64; impl IndentStyle { /// Creates an `IndentStyle` from an indentation string. diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 7be512f52..0a391a040 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -59,11 +59,11 @@ where D: serde::Deserializer<'de>, { usize::deserialize(deserializer).and_then(|n| { - if n > 0 && n <= 16 { + if n > 0 && n <= 64 { Ok(n) } else { Err(serde::de::Error::custom( - "tab width must be a value from 1 to 16 inclusive", + "tab width must be a value from 1 to 64 inclusive", )) } })