Skip to content

Commit

Permalink
v0.16.0: fix bookmark read crash
Browse files Browse the repository at this point in the history
See changelog.
  • Loading branch information
someodd committed Aug 9, 2020
1 parent abec87b commit 0ada4d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.16.0] - 2020-08-09

### Fix

* Any bookmark which would alphabetically come before `DEFAULT`
would cause reading the bookmarks to crash Waffle. This has
been fixed!

## [0.15.0] - 2020-08-05

### Add
Expand Down
2 changes: 1 addition & 1 deletion src/BrickApp/ModeAction/Bookmarks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bookmarksMenuText :: IO T.Text
bookmarksMenuText = do
cp <- getUserBookmarks
-- It is noted in Data.ConfigFile to not do this
let sectionOptionsList = tail $ Map.toList $ CF.content cp -- this skips DEFAULT
let sectionOptionsList = filter (\x -> fst x /= "DEFAULT") $ Map.toList $ CF.content cp -- this skips DEFAULT
menuLines = map entryToMenuItemText sectionOptionsList
pure $ T.intercalate "\n" menuLines
where
Expand Down
2 changes: 1 addition & 1 deletion waffle.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: waffle
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 0.15.0.0
version: 0.16.0.0

-- A short (one-line) description of the package.
synopsis: Gopher protocol client
Expand Down

0 comments on commit 0ada4d5

Please sign in to comment.