From eac2ff0ea73c2e8cb132573318b9408a8a11a4f4 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 2 Dec 2016 15:37:18 -0800 Subject: [PATCH] ui: make --watch work on the error screen too --- hledger-ui/Hledger/UI/ErrorScreen.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger-ui/Hledger/UI/ErrorScreen.hs b/hledger-ui/Hledger/UI/ErrorScreen.hs index 967a1b98f..a45ff3c18 100644 --- a/hledger-ui/Hledger/UI/ErrorScreen.hs +++ b/hledger-ui/Hledger/UI/ErrorScreen.hs @@ -92,7 +92,7 @@ esHandle ui@UIState{ (pos,f) = case parsewithString hledgerparseerrorpositionp esError of Right (f,l,c) -> (Just (l, Just c),f) Left _ -> (endPos, journalFilePath j) - e | e `elem` [VtyEvent (EvKey (KChar 'g') [])] -> + e | e `elem` [VtyEvent (EvKey (KChar 'g') []), AppEvent FileChange] -> liftIO (uiReloadJournal copts d (popScreen ui)) >>= continue . uiCheckBalanceAssertions d -- (ej, _) <- liftIO $ journalReloadIfChanged copts d j -- case ej of