From b3464bf7eec15ad575e351ce7e79244542de91fd Mon Sep 17 00:00:00 2001 From: Canop Date: Thu, 25 Feb 2021 17:03:52 +0100 Subject: version 1.2.5 --- CHANGELOG.md | 5 +++-- Cargo.lock | 2 +- Cargo.toml | 2 +- src/tree_build/builder.rs | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f82dca0..6b42b2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ -### next + +### v1.2.5 - 2021-02-25 - fix style characters being written in `--no-style` mode - Fix #346 - replace `--no-style` with `--color` taking `yes`, `no` or `auto`, with detection of output being piped in `auto` mode (default). `--no-style` is still usable but it's not documented anymore - Fix #347 - fix wrong version number written in log file - Fix #349 -- by default the number of panels is now limited to 2 (can be changed in conf with `max_panels_count`) - Fix #345 +- by default the number of panels is now limited to 2 (can be changed in conf with `max_panels_count`). The goal is to improve the global ergonomics for the most common (universal?) use case - Fix #345 ### v1.2.4 - 2021-02-14 diff --git a/Cargo.lock b/Cargo.lock index 86346bb..53ece9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -121,7 +121,7 @@ dependencies = [ [[package]] name = "broot" -version = "1.2.5-dev" +version = "1.2.5" dependencies = [ "ahash", "ansi_colours", diff --git a/Cargo.toml b/Cargo.toml index bae461f..89b12f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "broot" -version = "1.2.5-dev" +version = "1.2.5" authors = ["dystroy "] repository = "https://github.com/Canop/broot" documentation = "https://dystroy.org/broot" diff --git a/src/tree_build/builder.rs b/src/tree_build/builder.rs index 85f8ff7..d96039a 100644 --- a/src/tree_build/builder.rs +++ b/src/tree_build/builder.rs @@ -118,7 +118,6 @@ impl<'c> TreeBuilder<'c> { return None; } let name = name.to_string_lossy(); - let name = name.to_string(); let mut has_match = true; let mut score = 10000 - i32::from(depth); // we dope less deep entries let path = e.path(); @@ -148,6 +147,7 @@ impl<'c> TreeBuilder<'c> { has_match = false; false }; + let name = name.to_string(); if has_match && self.options.filter_by_git_status { if let Some(line_status_computer) = &self.line_status_computer { if !line_status_computer.is_interesting(&path) { -- cgit v1.2.3