From 3a6d9802e0489b0f4fb873facf629a889bc7eceb Mon Sep 17 00:00:00 2001 From: SoraTenshi Date: Sat, 11 Mar 2023 18:02:41 +0100 Subject: [PATCH] Fix indicator length calculation --- helix-term/src/ui/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index ee8b56906..c41061474 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -945,7 +945,7 @@ impl EditorView { let message = "┤Sticky Context├"; let side_placeholder = (viewport.width as usize) .saturating_div(2) - .saturating_sub(message.len() - 1); + .saturating_sub(message.len()); let added_length = if side_placeholder > 1 { message.len()