mirror of
https://github.com/tmux/tmux.git
synced 2025-04-06 08:08:49 +00:00
skip foreach loop if done
This commit is contained in:
parent
7fa11dcd24
commit
5091236d4d
@ -2629,12 +2629,14 @@ server_client_handle_key(struct client *c, struct key_event *event)
|
||||
}
|
||||
if (c->overlay_key != NULL) {
|
||||
done = c->overlay_key(c, c->overlay_data, event);
|
||||
TAILQ_FOREACH(wp, &c->session->curw->window->panes, entry) {
|
||||
if (~c->flags & CLIENT_OVERLAYFOCUSED)
|
||||
goto focused;
|
||||
}
|
||||
if (done)
|
||||
server_client_clear_overlay(c);
|
||||
else {
|
||||
TAILQ_FOREACH(wp, &c->session->curw->window->panes, entry) {
|
||||
if (~c->flags & CLIENT_OVERLAYFOCUSED)
|
||||
goto focused;
|
||||
}
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
focused: if (c->prompt_string != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user