summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2005-06-11 18:48:44 +0000
committersabetts <sabetts>2005-06-11 18:48:44 +0000
commit97d975e9a0c65808222f07272ed2b7d54e69f4fc (patch)
tree4e98fbfee034582621beadf1a02a9f84faf02f50 /src/main.c
parentd9a76c05c9184b61157e38dedf6bc389689de515 (diff)
downloadratpoison-97d975e9a0c65808222f07272ed2b7d54e69f4fc.zip
* src/main.c (clean_up): call del_frame_undo not pop_frame_undo
* src/globals.h: new global prototype rp_frame_redos * src/globals.c: new global rp_frame_redos * src/actions.h: new command 'undo' (del_frame_undo): new prototype (pop_frame_undo): delete prototype * src/actions.c (init_user_commands): new command 'undo' (clear_frame_redos): new function (del_frame_undo): likewise (push_frame_undo): call del_frame_undo instead of pop_frame_undo. call clear_frame_redos. (pop_frame_list): new function (pop_frame_undo): returns the popped frame. all callers updated. (pop_frame_redo): new function (initialize_default_keybindings): bind undo to u and C-u, bind redo to U. (set_maxundos): call del_frame_undo instead of pop_frame_redo (cmd_redo): new function
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 365985c..123445f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -738,7 +738,7 @@ clean_up ()
/* Delete the oldest node */
rp_frame_undo *cur;
list_last (cur, &rp_frame_undos, node);
- pop_frame_undo (cur);
+ del_frame_undo (cur);
}
/* Free the global frame numset shared by all screens. */