aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/picker.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-03-23 01:39:24 +0000
committerBlaž Hrastnik2022-03-28 02:02:26 +0000
commit92bb312f0fadc0cb60f51241a10d39783c020a3f (patch)
tree91cdbebeb66b121d7908d45f97a81427579fd6da /helix-term/src/ui/picker.rs
parent96a4eb84838d4cbfb9313968278985ea1986a3bc (diff)
Make line a private property
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r--helix-term/src/ui/picker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index e5498583..a1a22c71 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -339,7 +339,7 @@ impl<T> Picker<T> {
pub fn score(&mut self) {
let now = Instant::now();
- let pattern = &self.prompt.line;
+ let pattern = self.prompt.line();
if pattern == &self.previous_pattern {
return;
@@ -607,7 +607,7 @@ impl<T: 'static> Component for Picker<T> {
let (_score, highlights) = self
.matcher
- .fuzzy_indices(&formatted, &self.prompt.line)
+ .fuzzy_indices(&formatted, self.prompt.line())
.unwrap_or_default();
surface.set_string_truncated(