diff options
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c index 7d73fd2..5d7b335 100644 --- a/src/actions.c +++ b/src/actions.c @@ -256,6 +256,7 @@ init_user_commands(void) "Name: ", arg_STRING); add_command ("gnext", cmd_gnext, 0, 0, 0); add_command ("gprev", cmd_gprev, 0, 0, 0); + add_command ("gother", cmd_gother, 0, 0, 0); add_command ("gravity", cmd_gravity, 1, 0, 0, "Gravity: ", arg_GRAVITY); add_command ("groups", cmd_groups, 0, 0, 0); @@ -4825,6 +4826,13 @@ cmd_gprev (int interactive, struct cmdarg **args) } cmdret * +cmd_gother (int interactive, struct cmdarg **args) +{ + set_current_group (group_last_group ()); + return cmdret_new (RET_SUCCESS, NULL); +} + +cmdret * cmd_gnew (int interactive, struct cmdarg **args) { set_current_group (group_add_new_group (ARG_STRING(0))); |