summaryrefslogtreecommitdiff
path: root/src/globals.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/globals.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/globals.c')
-rw-r--r--src/globals.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/globals.c b/src/globals.c
index 6a5f1b3..0358f08 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -246,6 +246,7 @@ set_window_focus (Window window)
}
LIST_HEAD (rp_frame_undos);
+LIST_HEAD (rp_frame_redos);
int rp_num_frame_undos = 0;
void