File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,9 +142,13 @@ search_down = char (unkey KeyDown) `meta` \_ -> updateSearch \case
142142 zipp -> zipp
143143
144144search_del :: LexerS
145- search_del = char (unkey KeyDC ) `meta` \ _ -> updateSearch \ case
146- Zipper _ back (pv: rest) -> Zipper pv back rest
147- Zipper _ back _ -> Zipper " " back []
145+ search_del = char (unkey KeyDC ) `meta` \ _ sst -> let
146+ (r, sst', ml) = flip updateSearch sst \ case
147+ Zipper _ back (pv: rest) -> Zipper pv back rest
148+ Zipper _ back _ -> Zipper " " back []
149+ newhist = let Zipper cur _ _ = schZipper $ schSpec sst
150+ in filter (/= cur) $ schHist sst
151+ in (r, sst'{schHist = newhist}, ml)
148152
149153search_esc :: LexerS
150154search_esc = char ' \ESC ' `meta`
Original file line number Diff line number Diff line change 11cabal-version : 2.2
22
33name : hmp3-ng
4- version : 2.17.2
4+ version : 2.17.3
55synopsis : A 2019 fork of an ncurses mp3 player written in Haskell
66description : An mp3 player with a curses frontend. Playlists are populated by
77 passing file and directory names on the command line. 'h' displays
You can’t perform that action at this time.
0 commit comments