From e95c06245aea024d82c042a2189c2d18b4dc7172 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 30 Jun 2022 23:21:05 +0530 Subject: Bug Fix: invalid input showing one extra whitespace (looked weird) --- ui/episodes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/episodes.go b/ui/episodes.go index 69e2463..0623946 100644 --- a/ui/episodes.go +++ b/ui/episodes.go @@ -51,7 +51,7 @@ func EpisodeInput(anime a.Anime) { template := &p.PromptTemplates { Valid: "\x1b[0m{{ . | magenta }}", - Invalid: "\x1b[0m{{ . | magenta }}\x1b[31m ", + Invalid: "\x1b[0m{{ . | magenta }}\x1b[31m", Success: "{{ . | cyan }}", } @@ -84,7 +84,7 @@ func ChapterInput(manga m.Manga) { template := &p.PromptTemplates { Valid: "\x1b[0m{{ . | magenta }}", - Invalid: "\x1b[0m{{ . | magenta }}\x1b[31m ", + Invalid: "\x1b[0m{{ . | magenta }}\x1b[31m", Success: "{{ . | cyan }}", } -- cgit v1.2.3