From 2c0d70cbccaaf83a05cbec86e8a686256ae853b2 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Mon, 21 Jul 2025 17:07:57 -0400 Subject: [PATCH] fix(main): don't use JoinVertical to avoid inserting unnecessary spaces --- main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 7fc25e2464b3a0f2942524f8028e50dafc381673..ba1fdcd5e443e354d8ee288648055ccced01a653 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "net/http" "os" "runtime" + "strings" _ "net/http/pprof" // profiling @@ -38,11 +39,11 @@ func main() { } func showWindowsWarning() { - content := lipgloss.JoinVertical(lipgloss.Left, - lipgloss.NewStyle().Bold(true).Render("WARNING:")+" Crush is experimental on Windows!", + content := strings.Join([]string{ + lipgloss.NewStyle().Bold(true).Render("WARNING:") + " Crush is experimental on Windows!", "While we work on it, we recommend WSL2 for a better experience.", lipgloss.NewStyle().Italic(true).Render("Press Enter to continue..."), - ) + }, "\n") fmt.Print(content) var input string