Use the same logic for bell with and without visual-bell, from Filip

Moc.
This commit is contained in:
nicm 2014-04-02 17:14:24 +00:00
parent 8880bdb67c
commit 82f3e0e9e6
1 changed files with 3 additions and 2 deletions

View File

@ -85,10 +85,11 @@ server_window_check_bell(struct session *s, struct winlink *wl)
return (0);
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
c = ARRAY_ITEM(&clients, i);
if (c == NULL || c->session != s || (c->flags & CLIENT_CONTROL))
if (c == NULL || c->session != s || c->flags & CLIENT_CONTROL)
continue;
if (!visual) {
tty_bell(&c->tty);
if (c->session->curw->window == w || action == BELL_ANY)
tty_bell(&c->tty);
continue;
}
if (c->session->curw->window == w)