summaryrefslogtreecommitdiff
path: root/helix-term/src/ui/editor.rs
diff options
context:
space:
mode:
authorLudwig Stecher2022-03-01 01:30:02 +0000
committerGitHub2022-03-01 01:30:02 +0000
commit59c691d2dbdf14c02d0a4b8f9b014112ead6cda5 (patch)
tree2cca8faf55782aa8d6fff65a5108d1c0c5681229 /helix-term/src/ui/editor.rs
parentb13d44156c0f2ebe700c4169e87839c976c4fedc (diff)
Highlight matching text in file picker suggestions (#1635)
* Highlight matching text in file picker suggestions * Remove cache, specialize highlighting code * Fix outdated comments
Diffstat (limited to 'helix-term/src/ui/editor.rs')
-rw-r--r--helix-term/src/ui/editor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 064c74ee..b6aaf9e0 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -688,12 +688,12 @@ impl EditorView {
surface.set_string_truncated(
viewport.x + 8, // 8: 1 space + 3 char mode string + 1 space + 1 spinner + 1 space
viewport.y,
- title,
+ &title,
viewport
.width
.saturating_sub(6)
.saturating_sub(right_side_text.width() as u16 + 1) as usize, // "+ 1": a space between the title and the selection info
- base_style,
+ |_| base_style,
true,
true,
);