Skip to content

Commit

Permalink
Change default tab width to 4
Browse files Browse the repository at this point in the history
This is more consistent with web UIs like GitHub, so I think it's a
better default.
  • Loading branch information
Wilfred committed Jan 7, 2024
1 parent db86b28 commit bc0cbaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit bc0cbaf

Please sign in to comment.