mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
display/tree: 🔨 add space for better tree display
Signed-off-by: zwPapEr <zw.paper@gmail.com>
This commit is contained in:
parent
8873f1c199
commit
154fc1ef69
2 changed files with 3 additions and 3 deletions
|
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Added
|
||||
### Changed
|
||||
- Change size to use btyes in classic mode from [meain](https://github.com/meain)
|
||||
- Show tree edge before name block or first column if no name block from [zwpaper](https://github.com/zwpaper) [#468](https://github.com/Peltoche/lsd/issues/468)
|
||||
### Fixed
|
||||
|
||||
## [0.20.1] - 2021-03-07
|
||||
|
@ -21,7 +22,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Add man page from [edneville](https://github.com/edneville)
|
||||
### Changed
|
||||
- Not showing `.` and `..` when `--tree` with `--all` from [zwpaper](https://github.com/zwpaper) [#477](https://github.com/Peltoche/lsd/issues/477)
|
||||
- Show tree edge before name block, first column if no name block from [zwpaper](https://github.com/zwpaper) [#468](https://github.com/Peltoche/lsd/issues/468)
|
||||
### Fixed
|
||||
- Fix handling blocks passed without -l in cli from [meain](https://github.com/meain)
|
||||
- Fix sorting of . and .. when used with folder from [meain](https://github.com/meain)
|
||||
|
|
|
@ -202,9 +202,9 @@ fn inner_display_tree(
|
|||
let new_prefix = if tree_depth_prefix.0 > 0 {
|
||||
if idx + 1 != last_idx {
|
||||
// is last folder elem
|
||||
format!("{}{}", tree_depth_prefix.1, LINE)
|
||||
format!("{}{} ", tree_depth_prefix.1, LINE)
|
||||
} else {
|
||||
format!("{}{}", tree_depth_prefix.1, BLANK)
|
||||
format!("{}{} ", tree_depth_prefix.1, BLANK)
|
||||
}
|
||||
} else {
|
||||
tree_depth_prefix.1.to_string()
|
||||
|
|
Loading…
Reference in a new issue