Skip to content

Commit

Permalink
Do not require flipping of empty definition card
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvee1 committed Dec 17, 2023
1 parent 5e14b17 commit d0f56b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UI/Cards.hs
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ handleEvent (VtyEvent e) =
s <- use cs
flip (`maybe` (`handlePopupEvent` ev)) pUp $
case (s ^. cardState, s ^. currentCard) of
(DefinitionState{_flipped = f}, _) ->
(DefinitionState{_flipped = f}, Definition {definition = d}) ->
case ev of
V.EvKey V.KEnter [] ->
if f
if f || all isSpace d
then if not (s^.reviewMode) then next
else cs.popup ?= correctPopup
else cs.cardState.flipped %= not
Expand Down

0 comments on commit d0f56b8

Please sign in to comment.