From 066a86539e67538f7a519476ca7fe29663f93bd4 Mon Sep 17 00:00:00 2001 From: Daniel Knuettel Date: Tue, 23 Jul 2024 13:14:22 +0200 Subject: [PATCH] fixed a bug in fixed_width --- src/make_prompt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/make_prompt.rs b/src/make_prompt.rs index 1960308..78a78ca 100644 --- a/src/make_prompt.rs +++ b/src/make_prompt.rs @@ -12,7 +12,7 @@ fn fixed_width(input: &String, len: usize) -> String if clen > len { - let cut_to = len - 3_usize; + let cut_to = len - 1_usize; let start_from = clen - cut_to; let cutted_result = &input[start_from..]; let mut result: String = String::from(PLACE_HOLDER);