aboutsummaryrefslogtreecommitdiff
path: root/src/bw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bw.c')
-rw-r--r--src/bw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bw.c b/src/bw.c
index e93cd9a2..27f3066c 100644
--- a/src/bw.c
+++ b/src/bw.c
@@ -263,12 +263,12 @@ int a_Bw_num()
}
/*
- * TODO: remove this Hack.
+ * Return a bw by index
*/
-BrowserWindow *a_Bw_get()
+BrowserWindow *a_Bw_get(int i)
{
- if (num_bws > 0)
- return bws[0];
+ if (i >= 0 && i < num_bws)
+ return bws[i];
return NULL;
}