mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-21 17:06:18 +04:00
Merge 6ef095e2d3
into 15b478d433
This commit is contained in:
commit
17e0a406ec
@ -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.
|
||||
|
@ -59,11 +59,11 @@ fn deserialize_tab_width<'de, D>(deserializer: D) -> Result<usize, D::Error>
|
||||
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",
|
||||
))
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user