aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorOmnikar2021-11-04 03:24:05 +0000
committerGitHub2021-11-04 03:24:05 +0000
commit5b5d1b9dfff6b522559174f7f8e99aeb82c674a9 (patch)
treeb34c0d18466d21aa70b99b4aac16419f48def960 /helix-term
parente39cfa40dfc320559c5efdb502e1149c4564cb62 (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')
-rw-r--r--helix-term/src/ui/picker.rs1
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,
);
}
}