Skip to content

Commit

Permalink
v0.18.0: fix menu find, open text file status bar
Browse files Browse the repository at this point in the history
Issue with menu find and pressing enter to follow a link found
when it's a link to a text file, the find search bar would stay
open in the bottom/status bar
  • Loading branch information
someodd committed Aug 15, 2020
1 parent 6c54732 commit 7f44281
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.17.0]
## [0.18.0] - 2020-08-14

### Fix

* Issue with menu find and pressing enter to follow a link found
when it's a link to a text file, the find search bar would stay
open in the bottom/status bar

## [0.17.0] - 2020-08-14

### Add

Expand Down
2 changes: 1 addition & 1 deletion src/BrickApp/Handle/Menu/Find.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ menuFindEventHandler gbs e = case e of
-- FIXME: esc quits! Change key...
V.EvKey V.KEsc [] -> B.continue $ statusEditorFormerMode gbs
-- On enter save bookmark with the name inputted
V.EvKey V.KEnter [] -> liftIO (newStateFromSelectedMenuItem gbs) >>= B.continue
V.EvKey V.KEnter [] -> liftIO (newStateFromSelectedMenuItem $ gbs { gbsStatus = Nothing }) >>= B.continue
V.EvKey (V.KChar 'n') [V.MCtrl] -> B.continue =<< editorEventHandler gbs e
_ -> B.continue =<< editorEventHandler gbs e
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.17.0.0
version: 0.18.0.0

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

0 comments on commit 7f44281

Please sign in to comment.