about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-30 00:17:44 +0000
committerJames Booth <boothj5@gmail.com>2015-11-30 00:17:44 +0000
commit0920b65ddf8162d850190ccbbb6bcaa7eee63300 (patch)
tree76163c43e836cd7c722e554660f23b010999a2ab /src/command/commands.c
parentd9435d3b659c4bd6728b9157bd8c67023050257e (diff)
downloadprofani-tty-0920b65ddf8162d850190ccbbb6bcaa7eee63300.tar.gz
Added /wins unread
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 042fbb1c..6db8f5d3 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1013,7 +1013,9 @@ gboolean
 cmd_wins(ProfWin *window, const char *const command, gchar **args)
 {
     if (args[0] == NULL) {
-        cons_show_wins();
+        cons_show_wins(FALSE);
+    } else if (strcmp(args[0], "unread") == 0) {
+        cons_show_wins(TRUE);
     } else if (strcmp(args[0], "tidy") == 0) {
         if (wins_tidy()) {
             cons_show("Windows tidied.");