fix(formatting): prevent crashes on files with multibyte characters (#51)

* Fix crash when truncating to middle of a character

* Fix alignment of file names with wide characters

* Respect use ::formatting convention
This commit is contained in:
Renée Kooi
2020-06-26 14:03:04 +02:00
committed by GitHub
parent 4d3ac2b45c
commit 120058d817
4 changed files with 43 additions and 7 deletions

1
Cargo.lock generated
View File

@@ -191,6 +191,7 @@ dependencies = [
"structopt 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)",
"termion 1.5.5 (registry+https://github.com/rust-lang/crates.io-index)",
"tui 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)",
"unicode-width 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]