diff options
author | mWalrus | 2023-03-22 14:38:34 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-03-31 06:19:17 +0000 |
commit | e72be529968071abcd5fce1d9a06e8e2e2bbaacf (patch) | |
tree | 8c0f12984f736c8fce0b0241e541073218f318a4 /helix-term | |
parent | a863fd89e149ae698f1c7d1d493cc4197abd430a (diff) |
Truncate paths in the file picker (#6410)
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/ui/menu.rs | 1 | ||||
-rw-r--r-- | helix-term/src/ui/picker.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/ui/menu.rs b/helix-term/src/ui/menu.rs index 30625ace..bdad2e40 100644 --- a/helix-term/src/ui/menu.rs +++ b/helix-term/src/ui/menu.rs @@ -347,6 +347,7 @@ impl<T: Item + 'static> Component for Menu<T> { offset: scroll, selected: self.cursor, }, + false, ); if let Some(cursor) = self.cursor { diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 3294a2a1..e73088e5 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -885,6 +885,7 @@ impl<T: Item + 'static> Component for Picker<T> { offset: 0, selected: Some(cursor), }, + self.truncate_start, ); } |