From e9ddbab5851a406ea4177ce41d4adb1c7ef850b4 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 24 Apr 2014 23:06:42 +0100 Subject: Allow /wins swap to move to empty position --- src/command/commands.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/command/commands.c') diff --git a/src/command/commands.c b/src/command/commands.c index 8a37305a..83fe4322 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -478,6 +478,8 @@ cmd_wins(gchar **args, struct cmd_help_t help) int target_win = atoi(args[2]); if ((source_win == 1) || (target_win == 1)) { cons_show("Cannot move console window."); + } else if (source_win == 10 || target_win == 10) { + cons_show("Window 10 does not exist"); } else if (source_win != target_win) { gboolean swapped = ui_swap_wins(source_win, target_win); if (swapped) { -- cgit 1.4.1-2-gfad0