Skip to content

Commit

Permalink
Fix behavior with large undo lists
Browse files Browse the repository at this point in the history
  • Loading branch information
SerCeMan authored and danielcompton committed Jan 28, 2016
1 parent 4115e41 commit bb78981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/re_frame/undo.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
"Stores the value currently in app-db, so the user can later undo"
[explanation]
(clear-redos!)
(reset! undo-list (vec (take
(reset! undo-list (vec (take-last
@max-undos
(conj @undo-list @app-db))))
(reset! undo-explain-list (vec (take
(reset! undo-explain-list (vec (take-last
@max-undos
(conj @undo-explain-list @app-explain))))
(reset! app-explain explanation))
Expand Down

0 comments on commit bb78981

Please sign in to comment.