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 @@ pub fn render_bufferline(editor: &Editor, viewport: Rect, surface: &mut Surface) text = &filename[to_trim..]; to_trim = 0; } - Ordering::Greater => { + _ => { to_trim -= text.len(); continue; } - _ => {} } } let style = if idx == current_doc_idx.unwrap() {