summaryrefslogtreecommitdiffstats
path: root/cmd-find-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-04-01 08:10:56 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-04-01 08:10:56 +0000
commitcd8e536c430d8a605d5452f03674b7bdfd0b5fa7 (patch)
tree911f3db8456c64c1e4ee6886514391598c1e1e9f /cmd-find-window.c
parent0edaa34bfda4aa6ba509688fa32af9e1ee1bb7fc (diff)
Only find each window once no matter how many panes, from Jonathan
Daugherty.
Diffstat (limited to 'cmd-find-window.c')
-rw-r--r--cmd-find-window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-find-window.c b/cmd-find-window.c
index e1d5536f..c1dde2e2 100644
--- a/cmd-find-window.c
+++ b/cmd-find-window.c
@@ -142,6 +142,7 @@ cmd_find_window_exec(struct cmd *self, struct cmd_ctx *ctx)
ARRAY_ADD(&list_idx, wm->idx);
ARRAY_ADD(&list_ctx, sctx);
+ break;
}
}
xfree(searchstr);