mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-23 22:38:44 +01:00
A one line helper function is a little silly.
This commit is contained in:
parent
8121127606
commit
38e3baab2a
4
alerts.c
4
alerts.c
@ -174,7 +174,7 @@ alerts_check_bell(struct session *s, struct winlink *wl)
|
|||||||
(action == BELL_OTHER &&
|
(action == BELL_OTHER &&
|
||||||
c->session->curw->window != w) ||
|
c->session->curw->window != w) ||
|
||||||
action == BELL_ANY)
|
action == BELL_ANY)
|
||||||
tty_bell(&c->tty);
|
tty_putcode(&c->tty, TTYC_BEL);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (action == BELL_CURRENT && c->session->curw->window == w)
|
if (action == BELL_CURRENT && c->session->curw->window == w)
|
||||||
@ -258,6 +258,6 @@ alerts_ring_bell(struct session *s)
|
|||||||
|
|
||||||
TAILQ_FOREACH(c, &clients, entry) {
|
TAILQ_FOREACH(c, &clients, entry) {
|
||||||
if (c->session == s && !(c->flags & CLIENT_CONTROL))
|
if (c->session == s && !(c->flags & CLIENT_CONTROL))
|
||||||
tty_bell(&c->tty);
|
tty_putcode(&c->tty, TTYC_BEL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1
tmux.h
1
tmux.h
@ -1596,7 +1596,6 @@ void tty_cmd_utf8character(struct tty *, const struct tty_ctx *);
|
|||||||
void tty_cmd_reverseindex(struct tty *, const struct tty_ctx *);
|
void tty_cmd_reverseindex(struct tty *, const struct tty_ctx *);
|
||||||
void tty_cmd_setselection(struct tty *, const struct tty_ctx *);
|
void tty_cmd_setselection(struct tty *, const struct tty_ctx *);
|
||||||
void tty_cmd_rawstring(struct tty *, const struct tty_ctx *);
|
void tty_cmd_rawstring(struct tty *, const struct tty_ctx *);
|
||||||
void tty_bell(struct tty *);
|
|
||||||
|
|
||||||
/* tty-term.c */
|
/* tty-term.c */
|
||||||
extern struct tty_terms tty_terms;
|
extern struct tty_terms tty_terms;
|
||||||
|
Loading…
Reference in New Issue
Block a user