From 6691300f5f2c82755b57cd46b5e2cf6e9fac1bb4 Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Fri, 9 Jun 2023 12:20:44 -0500 Subject: [PATCH] Make launch options message take up a whole line, even when blank (#1315) This way the new game menu doesn't wiggle up and down depending on whether the launch options message is displayed. --- src/Swarm/TUI/View.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Swarm/TUI/View.hs b/src/Swarm/TUI/View.hs index 071f25400..fada1eb12 100644 --- a/src/Swarm/TUI/View.hs +++ b/src/Swarm/TUI/View.hs @@ -203,7 +203,7 @@ drawNewGameMenuUI (l :| ls) launchOptions = case displayedFor of launchOptionsMessage = case (displayedFor, snd <$> BL.listSelectedElement l) of (Nothing, Just (SISingle _)) -> hCenter $ txt "Press 'o' for launch options, or 'Enter' to launch with defaults" - _ -> emptyWidget + _ -> txt " " drawScenarioItem (SISingle (s, si)) = padRight (Pad 1) (drawStatusInfo s si) <+> txt (s ^. scenarioName) drawScenarioItem (SICollection nm _) = padRight (Pad 1) (withAttr boldAttr $ txt " > ") <+> txt nm