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