From 80f1d396dff72a94d159a25ce2589b407eb00c10 Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 29 Dec 2022 11:36:08 +0100 Subject: chore(grfn/xanthous): port to brick-0.73 This is the latest version before 1.0 which has some bigger changes as brick's EventM gains the ability to be MonadState which requires adjusting basically all App code. In 0.72, handleEditorEvent started taking a BrickEvent, so we no longer need to unwrap the VtyEvent in handlePromptEvent. Change-Id: Ic6a1ce6e21ba46177d3ce0b8a124abe7d8951464 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7666 Autosubmit: sterni Tested-by: BuildkiteCI Reviewed-by: grfn --- users/grfn/xanthous/src/Xanthous/App/Prompt.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/grfn/xanthous/src') diff --git a/users/grfn/xanthous/src/Xanthous/App/Prompt.hs b/users/grfn/xanthous/src/Xanthous/App/Prompt.hs index 799281a1c2fd..f9ee9fe1686f 100644 --- a/users/grfn/xanthous/src/Xanthous/App/Prompt.hs +++ b/users/grfn/xanthous/src/Xanthous/App/Prompt.hs @@ -55,7 +55,7 @@ handlePromptEvent _ (Prompt _ SConfirm _ _ _) (VtyEvent (EvKey (KChar 'n') [])) handlePromptEvent msg (Prompt c SStringPrompt (StringPromptState edit) pri cb) - (VtyEvent ev) + ev = do edit' <- lift $ handleEditorEvent ev edit let prompt' = Prompt c SStringPrompt (StringPromptState edit') pri cb -- cgit 1.4.1