mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 06:56:58 +00:00
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying colours...
This commit is contained in:
@ -81,7 +81,7 @@ server_window_loop(void)
|
||||
s = ARRAY_ITEM(&sessions, j);
|
||||
if (s == NULL || !session_has(s, w))
|
||||
continue;
|
||||
|
||||
|
||||
if (server_window_check_bell(s, w) ||
|
||||
server_window_check_activity(s, w))
|
||||
server_status_session(s);
|
||||
@ -121,7 +121,7 @@ server_window_check_bell(struct session *s, struct window *w)
|
||||
tty_putcode(&c->tty, TTYC_BEL);
|
||||
continue;
|
||||
}
|
||||
if (c->session->curw->window == w) {
|
||||
if (c->session->curw->window == w) {
|
||||
status_message_set(c, "Bell in current window");
|
||||
continue;
|
||||
}
|
||||
@ -137,7 +137,7 @@ server_window_check_bell(struct session *s, struct window *w)
|
||||
c = ARRAY_ITEM(&clients, i);
|
||||
if (c == NULL || c->session != s)
|
||||
continue;
|
||||
if (c->session->curw->window != w)
|
||||
if (c->session->curw->window != w)
|
||||
continue;
|
||||
if (!visual) {
|
||||
tty_putcode(&c->tty, TTYC_BEL);
|
||||
@ -163,7 +163,7 @@ server_window_check_activity(struct session *s, struct window *w)
|
||||
if (s->curw->window == w)
|
||||
return (0);
|
||||
|
||||
if (!options_get_number(&w->options, "monitor-activity"))
|
||||
if (!options_get_number(&w->options, "monitor-activity"))
|
||||
return (0);
|
||||
|
||||
if (session_alert_has_window(s, w, WINDOW_ACTIVITY))
|
||||
@ -172,7 +172,7 @@ server_window_check_activity(struct session *s, struct window *w)
|
||||
|
||||
if (s->flags & SESSION_UNATTACHED)
|
||||
return (0);
|
||||
if (options_get_number(&s->options, "visual-activity")) {
|
||||
if (options_get_number(&s->options, "visual-activity")) {
|
||||
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
||||
c = ARRAY_ITEM(&clients, i);
|
||||
if (c == NULL || c->session != s)
|
||||
@ -193,7 +193,7 @@ server_window_check_content(
|
||||
struct client *c;
|
||||
u_int i;
|
||||
char *found, *ptr;
|
||||
|
||||
|
||||
if (!(w->flags & WINDOW_ACTIVITY)) /* activity for new content */
|
||||
return (0);
|
||||
if (s->curw->window == w)
|
||||
@ -208,12 +208,12 @@ server_window_check_content(
|
||||
|
||||
if ((found = window_pane_search(wp, ptr, NULL)) == NULL)
|
||||
return (0);
|
||||
xfree(found);
|
||||
xfree(found);
|
||||
|
||||
session_alert_add(s, w, WINDOW_CONTENT);
|
||||
if (s->flags & SESSION_UNATTACHED)
|
||||
return (0);
|
||||
if (options_get_number(&s->options, "visual-content")) {
|
||||
if (options_get_number(&s->options, "visual-content")) {
|
||||
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
||||
c = ARRAY_ITEM(&clients, i);
|
||||
if (c == NULL || c->session != s)
|
||||
|
Reference in New Issue
Block a user