From a958ccaccf7981076c9cac3ecc4ac607086af6f5 Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 4 Aug 2022 02:27:12 +0200 Subject: [PATCH] Fix word wrapping When displaying text widgets containing tabs, the calculated width would not take those tabs into account and the widget would thus display incorrectly. Fixed by updating toss so its width functions are tab-aware and word wrapping is fixed as well. --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1d6d204..e4691ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1248,7 +1248,7 @@ dependencies = [ [[package]] name = "toss" version = "0.1.0" -source = "git+https://github.com/Garmelon/toss.git?rev=d186291ef7f8d94963638c88446726d6375961b1#d186291ef7f8d94963638c88446726d6375961b1" +source = "git+https://github.com/Garmelon/toss.git?rev=5957e8e5508a3772b2229fc9d8ac30ce4173d356#5957e8e5508a3772b2229fc9d8ac30ce4173d356" dependencies = [ "crossterm", "unicode-linebreak", diff --git a/Cargo.toml b/Cargo.toml index 86bba95..d8cd312 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ features = ["rustls-tls-native-roots"] [dependencies.toss] git = "https://github.com/Garmelon/toss.git" -rev = "d186291ef7f8d94963638c88446726d6375961b1" +rev = "5957e8e5508a3772b2229fc9d8ac30ce4173d356" # [patch."https://github.com/Garmelon/toss.git"] # toss = { path = "../toss/" }