From 61c0189bb1b39c6100e90657bdbfe542b2ce0ece Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 31 May 2017 15:26:41 +0000 Subject: Need time.h. --- window-buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/window-buffer.c b/window-buffer.c index f4d4c5f8..014a0b88 100644 --- a/window-buffer.c +++ b/window-buffer.c @@ -20,6 +20,7 @@ #include #include +#include #include #include "tmux.h" -- cgit From b3d0ed4057d95909cee76d91ee1178fe515aee49 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 31 May 2017 15:27:57 +0000 Subject: time.h here too. --- window-client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/window-client.c b/window-client.c index 4d720960..f34d007d 100644 --- a/window-client.c +++ b/window-client.c @@ -21,6 +21,7 @@ #include #include +#include #include "tmux.h" -- cgit From 70cc8f2c7ee4789e2516a275d2c9494ad03c4d7f Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 31 May 2017 16:44:33 +0000 Subject: Shut up a warning. --- cmd-find-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-find-window.c b/cmd-find-window.c index 92714498..22a54195 100644 --- a/cmd-find-window.c +++ b/cmd-find-window.c @@ -79,7 +79,7 @@ cmd_find_window_exec(struct cmd *self, struct cmdq_item *item) xasprintf(&filter, "#{C:%s}", s); else if (N) xasprintf(&filter, "#{m:*%s*,#{window_name}}", s); - else if (T) + else xasprintf(&filter, "#{m:*%s*,#{pane_title}}", s); new_args = args_parse("", 1, &argv); -- cgit From 248aa54bfdef25ff95db3c3426651f9894c652c5 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 31 May 2017 17:56:48 +0000 Subject: Style and spacing nits. --- cmd-set-option.c | 2 +- format.c | 2 +- job.c | 2 +- options.c | 2 +- screen-write.c | 2 +- utf8.c | 3 +-- window-buffer.c | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cmd-set-option.c b/cmd-set-option.c index ad058b8e..d8539ee7 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -254,7 +254,7 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) RB_FOREACH(w, windows, &windows) layout_fix_panes(w, w->sx, w->sy); } - RB_FOREACH (s, sessions, &sessions) + RB_FOREACH(s, sessions, &sessions) status_update_saved(s); /* diff --git a/format.c b/format.c index 7aad4cb8..60067e4c 100644 --- a/format.c +++ b/format.c @@ -203,7 +203,7 @@ format_job_update(struct job *job) log_debug("%s: %p %s: %s", __func__, fj, fj->cmd, fj->out); - t = time (NULL); + t = time(NULL); if (fj->status && fj->last != t) { if (fj->client != NULL) server_status_client(fj->client); diff --git a/job.c b/job.c index 7065a671..e69ba41b 100644 --- a/job.c +++ b/job.c @@ -158,7 +158,7 @@ job_read_callback(__unused struct bufferevent *bufev, void *data) struct job *job = data; if (job->updatecb != NULL) - job->updatecb (job); + job->updatecb(job); } /* diff --git a/options.c b/options.c index 861bd8ac..c13696f4 100644 --- a/options.c +++ b/options.c @@ -114,7 +114,7 @@ options_free(struct options *oo) { struct options_entry *o, *tmp; - RB_FOREACH_SAFE (o, options_tree, &oo->tree, tmp) + RB_FOREACH_SAFE(o, options_tree, &oo->tree, tmp) options_remove(o); free(oo); } diff --git a/screen-write.c b/screen-write.c index 9f684bb3..c5af7c07 100644 --- a/screen-write.c +++ b/screen-write.c @@ -48,7 +48,7 @@ struct screen_write_collect_item { struct grid_cell gc; - TAILQ_ENTRY (screen_write_collect_item) entry; + TAILQ_ENTRY(screen_write_collect_item) entry; }; struct screen_write_collect_line { TAILQ_HEAD(, screen_write_collect_item) items; diff --git a/utf8.c b/utf8.c index ac85863a..3a315749 100644 --- a/utf8.c +++ b/utf8.c @@ -402,8 +402,7 @@ utf8_rtrimcstr(const char *s, u_int width) next = end - 1; at = 0; - for (;;) - { + for (;;) { if (at + next->width > width) { next++; break; diff --git a/window-buffer.c b/window-buffer.c index 014a0b88..9c09c03f 100644 --- a/window-buffer.c +++ b/window-buffer.c @@ -199,7 +199,7 @@ window_buffer_draw(__unused void *modedata, void *itemdata, u_int sx, u_int sy) screen_write_start(&ctx, NULL, &s); screen_write_clearscreen(&ctx, 8); - pdata = end = paste_buffer_data (pb, &psize); + pdata = end = paste_buffer_data(pb, &psize); for (i = 0; i < sy; i++) { at = 0; while (end != pdata + psize && *end != '\n') { -- cgit