Skip to content

Commit

Permalink
Don't clear input field on building suffix tree
Browse files Browse the repository at this point in the history
This keeps the current input string in the input field when the "build suffix
tree" button is clicked. This makes it easier to tweak the input string and see
how the change affects the suffix tree.
  • Loading branch information
llbit committed Jul 4, 2018
1 parent 9e06b96 commit 028fa67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UkkonenVisualization.elm
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ update action model =

steps = Array.fromList (initialState :: UkkonenAlgorithm.steps terminatedString)
in
{ model | string = terminatedString, steps = steps, currentStep = 0, inputField = noContent }
{ model | string = terminatedString, steps = steps, currentStep = 0 }

Back ->
{ model | currentStep = max (model.currentStep - 1) 0 }
Expand Down

0 comments on commit 028fa67

Please sign in to comment.