From 4699a9edf08f03e51df7563873965c9a41e4831d Mon Sep 17 00:00:00 2001 From: Nawaf Date: Mon, 21 Aug 2023 13:26:27 -0400 Subject: [PATCH] fix match block --- helix-term/src/ui/editor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index c41c7cb73..394355abb 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -575,11 +575,10 @@ impl EditorView { text = &filename[to_trim..]; to_trim = 0; } - Ordering::Greater => { + _ => { to_trim -= text.len(); continue; } - _ => {} } } let style = if idx == current_doc_idx.unwrap() {