From bc0cbaf3aeff5c7eb29e9791fbb01a739fb02c0e Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sun, 7 Jan 2024 13:15:12 -0800 Subject: [PATCH] Change default tab width to 4 This is more consistent with web UIs like GitHub, so I think it's a better default. --- CHANGELOG.md | 4 ++++ src/options.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d0718ceb..c3b01426b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Added support for Objective-C. +### Display + +The default display width for tabs has changed to 4. + ## 0.54 (released 7th January 2024) ### Parsing diff --git a/src/options.rs b/src/options.rs index 43f3908e6..4e0aee938 100644 --- a/src/options.rs +++ b/src/options.rs @@ -21,7 +21,7 @@ pub(crate) const DEFAULT_BYTE_LIMIT: usize = 1_000_000; pub(crate) const DEFAULT_GRAPH_LIMIT: usize = 3_000_000; pub(crate) const DEFAULT_PARSE_ERROR_LIMIT: usize = 0; -pub(crate) const DEFAULT_TAB_WIDTH: usize = 8; +pub(crate) const DEFAULT_TAB_WIDTH: usize = 4; pub(crate) const USAGE: &str = concat!(env!("CARGO_BIN_NAME"), " [OPTIONS] OLD-PATH NEW-PATH");