From 593504bb2721b8548419b093f0c2124187812b15 Mon Sep 17 00:00:00 2001 From: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Thu, 27 Mar 2025 11:03:56 +0000 Subject: [PATCH] feat: left padding 2 -> 1 --- 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 ef3fd9a01..4136aa739 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -156,7 +156,7 @@ impl EditorView { let y_center = view.area.x + view.area.width / 2; let x_start_left = - view.area.x + (view.area.width / 2).saturating_sub(longest_left as u16 / 2) + 2; + view.area.x + (view.area.width / 2).saturating_sub(longest_left as u16 / 2) + 1; let has_x_left_overflow = (x_start_left + longest_left as u16) > view.area.width; let has_x_center_overflow = longest_center as u16 > view.area.width;