summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/list.c b/src/list.c
index fa06f69..8cdb38a 100644
--- a/src/list.c
+++ b/src/list.c
@@ -154,18 +154,19 @@ find_window_by_name (char *name)
return NULL;
}
-void
+int
goto_window_name (char *name)
{
rp_window *win;
if ((win = find_window_by_name (name)) == NULL)
{
- return;
+ return 0;
}
rp_current_window = win;
set_active_window (rp_current_window);
+ return 1;
}
rp_window *