summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2023-09-03 21:48:49 +0200
committerCanop <cano.petrole@gmail.com>2023-09-03 21:48:49 +0200
commit26bbc35944f2708c41ab90efcb7c15efc920557a (patch)
tree9d8e6063a1eabee3ebda328f32922c5e3e5e0559
parent879b84d4c069f7b37e69dc5fad756429306923e9 (diff)
version 1.25.1v1.25.1
-rw-r--r--CHANGELOG.md5
-rw-r--r--Cargo.lock97
-rw-r--r--Cargo.toml8
-rw-r--r--src/display/mod.rs2
-rw-r--r--src/image/svg.rs4
5 files changed, 41 insertions, 75 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 542648e..3f4c45f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+
+### v1.25.1 - 2023-09-03
+<a name="v1.25.1"></a>
+- fix shift-char in input extending the selection - Fix #733
+
### v1.25.0 - 2023-08-19
<a name="v1.25.0"></a>
- allow unescaped '::' in pattern position, experimental (might be removed)
diff --git a/Cargo.lock b/Cargo.lock
index b9f5a9c..4f66cac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -62,16 +62,15 @@ dependencies = [
[[package]]
name = "anstream"
-version = "0.3.2"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ca84f3628370c59db74ee214b3263d58f9aadd9b4fe7e711fd87dc452b7f163"
+checksum = "b1f58811cfac344940f1a400b6e6231ce35171f614f26439e80f8c1465c5cc0c"
dependencies = [
"anstyle",
"anstyle-parse",
"anstyle-query",
"anstyle-wincon",
"colorchoice",
- "is-terminal",
"utf8parse",
]
@@ -101,9 +100,9 @@ dependencies = [
[[package]]
name = "anstyle-wincon"
-version = "1.0.1"
+version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188"
+checksum = "58f54d10c6dfa51283a066ceab3ec1ab78d13fae00aa49243a45e4571fb79dfd"
dependencies = [
"anstyle",
"windows-sys",
@@ -201,12 +200,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
-name = "bitflags"
-version = "2.3.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42"
-
-[[package]]
name = "block"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -214,7 +207,7 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
[[package]]
name = "broot"
-version = "1.25.0"
+version = "1.25.1"
dependencies = [
"ahash 0.8.3",
"ansi_colours",
@@ -258,7 +251,7 @@ dependencies = [
"strict",
"syntect-no-panic",
"tempfile",
- "termimad 0.25.0",
+ "termimad 0.25.2",
"terminal-clipboard",
"terminal-light",
"toml",
@@ -337,13 +330,12 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.3.11"
+version = "4.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1640e5cc7fb47dbb8338fd471b105e7ed6c3cb2aeb00c2e067127ffd3764a05d"
+checksum = "6a13b88d2c62ff462f88e4a121f17a82c1af05693a2f192b5c38d14de73c19f6"
dependencies = [
"clap_builder",
"clap_derive",
- "once_cell",
]
[[package]]
@@ -359,31 +351,30 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.3.11"
+version = "4.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "98c59138d527eeaf9b53f35a77fcc1fad9d883116070c63d5de1c7dc7b00c72b"
+checksum = "2bb9faaa7c2ef94b2743a21f5a29e6f0010dff4caa69ac8e9d6cf8b6fa74da08"
dependencies = [
"anstream",
"anstyle",
"clap_lex",
- "once_cell",
"strsim",
]
[[package]]
name = "clap_complete"
-version = "4.3.2"
+version = "4.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5fc443334c81a804575546c5a8a79b4913b50e28d69232903604cada1de817ce"
+checksum = "586a385f7ef2f8b4d86bddaa0c094794e7ccbfe5ffef1f434fe928143fc783a5"
dependencies = [
"clap",
]
[[package]]
name = "clap_derive"
-version = "4.3.2"
+version = "4.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8cd2b2a819ad6eec39e8f1d6b53001af1e5469f8c177579cdaeb313115b825f"
+checksum = "0862016ff20d69b84ef8247369fabf5c008a7417002411897d40ee1f4532b873"
dependencies = [
"heck",
"proc-macro2",
@@ -573,7 +564,7 @@ version = "0.23.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2102ea4f781910f8a5b98dd061f4c2023f479ce7bb1236330099ceb5a93cf17"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
"crossterm_winapi",
"libc",
"mio",
@@ -911,7 +902,7 @@ version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0155506aab710a86160ddb504a480d2964d7ab5b9e62419be69e0032bc5931c"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
"libc",
"libgit2-sys",
"log",
@@ -1119,17 +1110,6 @@ dependencies = [
]
[[package]]
-name = "is-terminal"
-version = "0.4.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b"
-dependencies = [
- "hermit-abi",
- "rustix 0.38.4",
- "windows-sys",
-]
-
-[[package]]
name = "is_executable"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1312,12 +1292,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519"
[[package]]
-name = "linux-raw-sys"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0"
-
-[[package]]
name = "lock_api"
version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1439,7 +1413,7 @@ version = "0.22.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4916f159ed8e5de0082076562152a76b7a1f64a01fd9d1e0fea002c37624faf"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
"cc",
"cfg-if",
"libc",
@@ -1527,7 +1501,7 @@ version = "6.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c4b31c8722ad9171c6d77d3557db078cab2bd50afcc9d09c8b315c59df8ca4f"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
"libc",
"once_cell",
"onig_sys",
@@ -1694,7 +1668,7 @@ version = "0.17.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59871cc5b6cce7eaccca5a802b4173377a1c2ba90654246789a8fa2334426d11"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
"crc32fast",
"fdeflate",
"flate2",
@@ -1831,7 +1805,7 @@ version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
]
[[package]]
@@ -1840,7 +1814,7 @@ version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
]
[[package]]
@@ -1936,7 +1910,7 @@ version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5f38ee71cbab2c827ec0ac24e76f82eca723cee92c509a65f67dee393c25112"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
"fallible-iterator",
"fallible-streaming-iterator",
"hashlink",
@@ -1951,24 +1925,11 @@ version = "0.37.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d69718bf81c6127a49dc64e44a742e8bb9213c0ff8869a22c308f84c1d4ab06"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
"errno",
"io-lifetimes",
"libc",
- "linux-raw-sys 0.3.8",
- "windows-sys",
-]
-
-[[package]]
-name = "rustix"
-version = "0.38.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a962918ea88d644592894bc6dc55acc6c0956488adcebbfb6e273506b7fd6e5"
-dependencies = [
- "bitflags 2.3.3",
- "errno",
- "libc",
- "linux-raw-sys 0.4.3",
+ "linux-raw-sys",
"windows-sys",
]
@@ -1978,7 +1939,7 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "162bdf42e261bee271b3957691018634488084ef577dddeb6420a9684cab2a6a"
dependencies = [
- "bitflags 1.3.2",
+ "bitflags",
"bytemuck",
"smallvec",
"ttf-parser 0.18.1",
@@ -2239,7 +2200,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bee6d840027be11d9fae1432a799c548eaf0332a9a8dbe8526281d55a9600e4f"
dependencies = [
"bincode",
- "bitflags 1.3.2",
+ "bitflags",
"flate2",
"fnv",
"lazy_static",
@@ -2264,7 +2225,7 @@ dependencies = [
"cfg-if",
"fastrand",
"redox_syscall 0.3.5",
- "rustix 0.37.23",
+ "rustix",
"windows-sys",
]
@@ -2298,9 +2259,9 @@ dependencies = [
[[package]]
name = "termimad"
-version = "0.25.0"
+version = "0.25.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29bffc8a18091227aeac7ccbf7ccc0359a4b7d4c0b53a4a7680050aae05a0b31"
+checksum = "2229aaf689febef17c66f4724bf84c52d3dade1fce12b1cdf4d9e409647ee253"
dependencies = [
"coolor",
"crossbeam",
diff --git a/Cargo.toml b/Cargo.toml
index f6e7f02..b23e260 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "broot"
-version = "1.25.0"
+version = "1.25.1"
authors = ["dystroy <denys.seguret@gmail.com>"]
repository = "https://github.com/Canop/broot"
homepage = "https://dystroy.org/broot"
@@ -58,7 +58,7 @@ splitty = "1.0"
strict = "0.1.4"
syntect = { package = "syntect-no-panic", version = "4.6.1" } # see issue #485
tempfile = "3.2"
-termimad = "0.25.0"
+termimad = "0.25.2"
terminal-clipboard = { version = "0.4.0", optional = true }
terminal-light = "1.1.1"
toml = "0.7"
@@ -78,8 +78,8 @@ users = "0.11"
is_executable = "1.0.1"
[build-dependencies]
-clap = { version = "4.3", features = ["derive", "cargo"] }
-clap_complete = "4.3"
+clap = { version = "4.4", features = ["derive", "cargo"] }
+clap_complete = "4.4"
clap_mangen = "0.2.12"
[profile.dev]
diff --git a/src/display/mod.rs b/src/display/mod.rs
index a9eceff..76a9cfd 100644
--- a/src/display/mod.rs
+++ b/src/display/mod.rs
@@ -42,7 +42,7 @@ pub use {
cond_bg,
displayable_tree::DisplayableTree,
git_status_display::GitStatusDisplay,
- luma::*,
+ luma::LumaCondition,
matched_string::MatchedString,
screen::Screen,
cell_size::*,
diff --git a/src/image/svg.rs b/src/image/svg.rs
index 739787c..f3771c9 100644
--- a/src/image/svg.rs
+++ b/src/image/svg.rs
@@ -59,8 +59,8 @@ pub fn render_tree(
max_height: u32,
bg_color: Option<coolor::Color>,
) -> Result<DynamicImage, SvgError> {
- let t_width = tree.size.width() as f32;
- let t_height = tree.size.height() as f32;
+ let t_width = tree.size.width();
+ let t_height = tree.size.height();
debug!("SVG natural size: {t_width} x {t_height}");
let zoom = compute_zoom(t_width, t_height, max_width, max_height)?;
debug!("svg rendering zoom: {zoom}");