Fix option configHelp retrieval with blank input

This commit is contained in:
Kevin Quick 2021-04-28 08:08:27 -07:00
parent a69c2cea9e
commit 9660b4a27b
No known key found for this signature in database
GPG Key ID: E6D7733599CC0A21

View File

@ -1131,7 +1131,7 @@ configHelp ::
IO [Doc Void]
configHelp prefix (Config cfg) =
do m <- readMVar cfg
let ps = Text.splitOn "." prefix
let ps = dropWhile Text.null $ Text.splitOn "." prefix
f :: [Text] -> ConfigLeaf -> WriterT (Seq (Doc Void)) IO ConfigLeaf
f nm leaf = do d <- liftIO (ppConfigLeaf nm leaf)
tell (Seq.singleton d)