Skip to content

Commit

Permalink
fix: read hidden from config file
Browse files Browse the repository at this point in the history
Previously, setting `hidden = true` in the config file would have no
effect. Now it is properly read.

Fixes: #1092
  • Loading branch information
SVendittelli committed May 6, 2024
1 parent ba11288 commit fc29b7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ impl Cli {
/// higher precedence than options present in config files.
///
/// #### Shared options
/// * `hidden`
/// * `no_ignore`
/// * `no_ignore_parent`
/// * `no_ignore_dot`
Expand Down
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ impl Config {
columns: current_dir
.columns
.or(home_dir.columns.or(conf_dir.columns)),
hidden: current_dir.hidden.or(home_dir.hidden.or(conf_dir.hidden)),
//languages: current_dir.languages.or(conf_dir.languages),
treat_doc_strings_as_comments: current_dir.treat_doc_strings_as_comments.or(home_dir
.treat_doc_strings_as_comments
Expand Down

0 comments on commit fc29b7a

Please sign in to comment.