summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 03:27:44 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 03:27:44 +0100
commit62aa39099e0b1f8e4d86ff9239c8f52ad017ab54 (patch)
tree945b901a7e26d7b58a4dd2b7250fd54dc6b740e9 /src/main.c
parent47b4beb0009cb886ef83afb4f015eb79b48475e7 (diff)
downloadratpoison-62aa39099e0b1f8e4d86ff9239c8f52ad017ab54.zip
Keep frame undo/redo local to actions.c
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 3ca8ee6..3c2b300 100644
--- a/src/main.c
+++ b/src/main.c
@@ -838,13 +838,7 @@ clean_up (void)
free (screens);
/* Delete the undo histories */
- while (list_size (&rp_frame_undos) > 0)
- {
- /* Delete the oldest node */
- rp_frame_undo *cur;
- list_last (cur, &rp_frame_undos, node);
- del_frame_undo (cur);
- }
+ clear_frame_undos ();
/* Free the global frame numset shared by all screens. */
numset_free (rp_frame_numset);