From 26e9529dfa6b4fe294c2090c03656b6a96d03fd1 Mon Sep 17 00:00:00 2001 From: Ibrahim Qasim Date: Sat, 23 Mar 2024 20:16:21 +0000 Subject: [PATCH] Add spaces around position percentage --- helix-term/src/ui/statusline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/statusline.rs b/helix-term/src/ui/statusline.rs index 2939a257328a..000a37d63e06 100644 --- a/helix-term/src/ui/statusline.rs +++ b/helix-term/src/ui/statusline.rs @@ -327,7 +327,7 @@ fn render_total_line_numbers<'a>(context: &RenderContext) -> Spans<'a> { fn render_position_percentage<'a>(context: &RenderContext) -> Spans<'a> { let position = get_position(context); let maxrows = context.doc.text().len_lines(); - Span::raw(format!("{}%", (position.row + 1) * 100 / maxrows)).into() + Span::raw(format!(" {}% ", (position.row + 1) * 100 / maxrows)).into() } fn render_file_encoding<'a>(context: &RenderContext) -> Spans<'a> {