From 7f3afb816e6a896701817adf76a821f79167a24d Mon Sep 17 00:00:00 2001 From: Necried Date: Thu, 28 Feb 2019 11:31:10 -0500 Subject: [PATCH] Fix for #65 --- src/Simulating.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Simulating.elm b/src/Simulating.elm index 9e8fdd7..887afb1 100644 --- a/src/Simulating.elm +++ b/src/Simulating.elm @@ -329,7 +329,7 @@ update env msg ( model, pModel, sModel ) = --pressed enter case model of Editing tId -> - ( ( Default tId -1 Nothing, pModel, sModel ), True, Cmd.none ) + ( ( Default tId -1 Nothing, { pModel | currentStates = epsTrans oldMachine.transitionNames oldMachine.delta oldMachine.start }, sModel ), True, Cmd.none ) _ -> ( ( model, pModel, sModel ), False, Cmd.none )