From f98a2796b7c1379b204a24586e598d7f8da9da9f Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Thu, 20 Jun 2019 14:26:39 +0530 Subject: fixes for line length --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1a05904..8a66c4d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,7 +47,7 @@ impl Hinter for AnswerHinter { } let dry_run = eval_math_expression(&input); match dry_run { - Ok(ans) => return Some(format!("\x1b[90m = {}\x1b[0m", ans)), + Ok(ans) => return Some(format!(" = {}", ans)), Err(_) => return Some(format!("")) }; } @@ -59,7 +59,7 @@ impl Highlighter for RLHelper { } fn highlight_hint<'h>(&self, hint: &'h str) -> Cow<'h, str> { - Owned("\x1b[1m".to_owned() + hint + "\x1b[m") + Owned("\x1b[90m".to_owned() + hint + "\x1b[0m") } fn highlight<'l>(&self, line: &'l str, pos: usize) -> Cow<'l, str> { -- cgit v1.2.3