aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-18 18:31:45 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-18 18:31:45 +0000
commitd1a5fde3d074a0aa6d87f3f7494f01554eff17c6 (patch)
tree9d179af30022cd2c9b326d7f0ba69883930648ed /window.c
parent99bb795581de0468946fb8d86ea186f8a021952e (diff)
downloadrtmux-d1a5fde3d074a0aa6d87f3f7494f01554eff17c6.tar.gz
rtmux-d1a5fde3d074a0aa6d87f3f7494f01554eff17c6.tar.bz2
rtmux-d1a5fde3d074a0aa6d87f3f7494f01554eff17c6.zip
-a flags to next/previous window.
Diffstat (limited to 'window.c')
-rw-r--r--window.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/window.c b/window.c
index 64082b23..9289a727 100644
--- a/window.c
+++ b/window.c
@@ -1,4 +1,4 @@
-/* $Id: window.c,v 1.58 2009-01-14 19:29:32 nicm Exp $ */
+/* $Id: window.c,v 1.59 2009-01-18 18:31:45 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -160,22 +160,7 @@ winlink_next(unused struct winlinks *wwl, struct winlink *wl)
struct winlink *
winlink_previous(unused struct winlinks *wwl, struct winlink *wl)
{
-#ifdef RB_PREV
return (RB_PREV(winlinks, wwl, wl));
-#else
- struct winlink *wk;
- int idx = wl->idx;
-
- wk = NULL;
- wl = RB_MIN(winlinks, wwl);
- while (wl != NULL && wl->idx < idx) {
- wk = wl;
- wl = RB_NEXT(winlinks, wwl, wl);
- }
- if (wl == NULL)
- return (NULL);
- return (wk);
-#endif
}
void