From 1e8e97b79e869f2c9f92ea43d97edca3ed05b248 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Thu, 28 May 2020 22:42:55 -0400 Subject: [PATCH] FIX extra blanks in menu --- lib/Rofi/Command.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Rofi/Command.hs b/lib/Rofi/Command.hs index 6a11ee6..c09da9f 100644 --- a/lib/Rofi/Command.hs +++ b/lib/Rofi/Command.hs @@ -124,7 +124,7 @@ menuActions :: RofiMenu c -> RofiActions c menuActions = foldr1 (M.<>|) . fmap actions . groups menuEntries :: RofiMenu c -> String -menuEntries = intercalate "\n\n" . fmap groupEntries . groups +menuEntries = intercalate "\n\n" . filter (not . null) . fmap groupEntries . groups selectAction :: RofiConf c => RofiMenu c -> RofiIO c () selectAction rm = do