summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/mainwindows.c')
-rw-r--r--src/fe-text/mainwindows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c
index 48bbf0b9..81d08707 100644
--- a/src/fe-text/mainwindows.c
+++ b/src/fe-text/mainwindows.c
@@ -588,7 +588,7 @@ static void cmd_window_hide(const char *data)
else if (is_numeric(data, 0))
window = window_find_refnum(atoi(data));
else
- window = window_find_item(active_win, data);
+ window = window_find_item(active_win->active_server, data);
if (window == NULL) return;
if (!is_window_visible(window)) return;
@@ -610,7 +610,7 @@ static void cmd_window_show(const char *data)
window = is_numeric(data, 0) ?
window_find_refnum(atoi(data)) :
- window_find_item(active_win, data);
+ window_find_item(active_win->active_server, data);
if (window == NULL) return;
if (is_window_visible(window)) return;