about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-24 23:06:42 +0100
committerJames Booth <boothj5@gmail.com>2014-04-24 23:06:42 +0100
commite9ddbab5851a406ea4177ce41d4adb1c7ef850b4 (patch)
tree9f8cdc171cbbb1ae3361a5a968167e2e23d4b53f /src/command/commands.c
parent547b6cf4dad245876bdd1980f1ad5abfeb843af0 (diff)
downloadprofani-tty-e9ddbab5851a406ea4177ce41d4adb1c7ef850b4.tar.gz
Allow /wins swap to move to empty position
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c2
1 files changed, 2 insertions, 0 deletions
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) {