summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-common/core/window-commands.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fe-common/core/window-commands.c b/src/fe-common/core/window-commands.c
index 8648087b..9cf917fb 100644
--- a/src/fe-common/core/window-commands.c
+++ b/src/fe-common/core/window-commands.c
@@ -72,13 +72,10 @@ static void window_print_items(WINDOW_REC *win)
TXT_WINDOW_INFO_ITEMS_FOOTER);
}
-static void cmd_window_info(void)
+static void cmd_window_info(WINDOW_REC *win)
{
- WINDOW_REC *win;
char *levelstr;
- win = active_win;
-
printformat_window(win, MSGLEVEL_CLIENTCRAP,
TXT_WINDOW_INFO_HEADER);
@@ -148,7 +145,7 @@ static void cmd_window(const char *data, void *server, WI_ITEM_REC *item)
while (*data == ' ') data++;
if (*data == '\0')
- cmd_window_info();
+ cmd_window_info(active_win);
else if (is_numeric(data, 0))
signal_emit("command window refnum", 3, data, server, item);
else