From 59c691d2dbdf14c02d0a4b8f9b014112ead6cda5 Mon Sep 17 00:00:00 2001 From: Ludwig Stecher Date: Tue, 1 Mar 2022 02:30:02 +0100 Subject: Highlight matching text in file picker suggestions (#1635) * Highlight matching text in file picker suggestions * Remove cache, specialize highlighting code * Fix outdated comments--- helix-term/src/ui/editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term/src/ui/editor.rs') 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, ); -- cgit v1.2.3-70-g09d2