summaryrefslogtreecommitdiff
path: root/src/actions.h
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/actions.h
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/actions.h')
-rw-r--r--src/actions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actions.h b/src/actions.h
index 58a18cc..1ced405 100644
--- a/src/actions.h
+++ b/src/actions.h
@@ -202,10 +202,11 @@ RP_CMD (prompt);
RP_CMD (sdump);
RP_CMD (sfdump);
RP_CMD (undo);
+RP_CMD (redo);
RP_CMD (putsel);
RP_CMD (getsel);
-void pop_frame_undo (rp_frame_undo *u);
+void del_frame_undo (rp_frame_undo *u);
rp_keymap *find_keymap (char *name);
void init_user_commands();