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.
This commit is contained in:
Joscha 2022-08-04 02:27:12 +02:00
parent 8374552715
commit a958ccaccf
2 changed files with 2 additions and 2 deletions

2
Cargo.lock generated
View file

@ -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",