From 87277e573d30c3f363a169b0b7b7efadfba2cdd5 Mon Sep 17 00:00:00 2001 From: Sam Vendittelli Date: Mon, 13 May 2024 11:54:45 +0100 Subject: [PATCH] fix: read hidden from config file (#1093) Previously, setting `hidden = true` in the config file would have no effect. Now it is properly read. Fixes: #1092 --- src/cli.rs | 1 + src/config.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index afb198172..c21f9d80c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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` diff --git a/src/config.rs b/src/config.rs index 33687b794..1dfe5ff0c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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