diff options
author | Omnikar | 2021-11-04 03:24:05 +0000 |
---|---|---|
committer | GitHub | 2021-11-04 03:24:05 +0000 |
commit | 5b5d1b9dfff6b522559174f7f8e99aeb82c674a9 (patch) | |
tree | b34c0d18466d21aa70b99b4aac16419f48def960 /helix-term/src/ui | |
parent | e39cfa40dfc320559c5efdb502e1149c4564cb62 (diff) |
Truncate the starts of file paths instead of the ends in picker (#951)
* Truncate the starts of file paths in picker
* Simplify the truncate implementation
* Break loop at appropriate point
* Fix alignment and ellipsis presence
* Remove extraneous usage of `x_offset`
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/picker.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 7e257c0b..7fc6af0f 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -483,6 +483,7 @@ impl<T: 'static> Component for Picker<T> { text_style }, true, + true, ); } } |