From 8069eeb2802122f18122d2fe8dbd464871cf819e Mon Sep 17 00:00:00 2001 From: Canop Date: Wed, 30 Sep 2020 22:01:29 +0200 Subject: version 1.0.1 --- CHANGELOG.md | 3 ++- Cargo.lock | 2 +- Cargo.toml | 2 +- src/image/image_view.rs | 7 +------ 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26ce52c..5c425e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ -### next + +### v1.0.1 - 2020-09-30 * don't apply .gitignore files (including the global one) when not in a git repository - Fix #274 * the "clipboard" optional feature adds: * the `:copy_path` verb which copies the selected path to the clipboard (mapped to alt-c) diff --git a/Cargo.lock b/Cargo.lock index 5b4f694..e1c5be4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -115,7 +115,7 @@ dependencies = [ [[package]] name = "broot" -version = "1.0.1-dev" +version = "1.0.1" dependencies = [ "ansi_colours", "bet", diff --git a/Cargo.toml b/Cargo.toml index 932df7d..b9be161 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "broot" -version = "1.0.1-dev" +version = "1.0.1" authors = ["dystroy "] repository = "https://github.com/Canop/broot" documentation = "https://dystroy.org/broot" diff --git a/src/image/image_view.rs b/src/image/image_view.rs index c09e036..4e30562 100644 --- a/src/image/image_view.rs +++ b/src/image/image_view.rs @@ -24,7 +24,6 @@ use { termimad::{Area}, }; - /// an already resized image, with the dimensions it /// was computed for (which may be different from the /// dimensions we got) @@ -72,11 +71,7 @@ impl ImageView { let img = time!( Debug, "resize image", - self.source_img.resize( - area.width as u32, - (area.height*2) as u32, - FilterType::Triangle, - ), + self.source_img.resize(target_width, target_height, FilterType::Triangle), ); self.display_img = Some(CachedImage { target_width, -- cgit v1.2.3