This commit is contained in:
Jonathan Daugherty 2015-05-09 10:20:31 -07:00
parent 085ba506ae
commit 4d61bb0ebe

View File

@ -26,6 +26,7 @@ handleEvent :: Event -> St -> IO St
handleEvent e st =
case e of
EvKey KEsc [] -> exitSuccess
EvKey KEnter [] -> error $ editStr $ stEditor st
ev -> return $ st { stEditor = editEvent ev (stEditor st) }
initialState :: St