summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2016-12-09 21:39:27 +0000
committernicm <nicm>2016-12-09 21:39:27 +0000
commitbee95bf378ab45d4671fd086a4dd24b7259cf772 (patch)
tree506427d0c4c6a5645671c529b03520c3b46c6f32
parent2a7b4bb01710eab0b7819f3b80edaea636ada66f (diff)
Spacing nits.
-rw-r--r--input.c2
-rw-r--r--screen-write.c6
-rw-r--r--tmux.c2
-rw-r--r--tty-term.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/input.c b/input.c
index dd57e7f4..447c1b85 100644
--- a/input.c
+++ b/input.c
@@ -780,7 +780,7 @@ input_free(struct window_pane *wp)
free(ictx->input_buf);
evbuffer_free(ictx->since_ground);
- free (ictx);
+ free(ictx);
wp->ictx = NULL;
}
diff --git a/screen-write.c b/screen-write.c
index d5fc1dee..e8593cf1 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -516,7 +516,7 @@ screen_write_cursordown(struct screen_write_ctx *ctx, u_int ny)
s->cy += ny;
}
-/* Cursor right by nx. */
+/* Cursor right by nx. */
void
screen_write_cursorright(struct screen_write_ctx *ctx, u_int nx)
{
@@ -839,7 +839,7 @@ screen_write_clearstartofline(struct screen_write_ctx *ctx, u_int bg)
tty_write(tty_cmd_clearstartofline, &ttyctx);
}
-/* Move cursor to px,py. */
+/* Move cursor to px,py. */
void
screen_write_cursormove(struct screen_write_ctx *ctx, u_int px, u_int py)
{
@@ -854,7 +854,7 @@ screen_write_cursormove(struct screen_write_ctx *ctx, u_int px, u_int py)
s->cy = py;
}
-/* Reverse index (up with scroll). */
+/* Reverse index (up with scroll). */
void
screen_write_reverseindex(struct screen_write_ctx *ctx)
{
diff --git a/tmux.c b/tmux.c
index dbd91e2b..194a16e5 100644
--- a/tmux.c
+++ b/tmux.c
@@ -321,7 +321,7 @@ main(int argc, char **argv)
s = getenv("TMUX");
if (s != NULL && *s != '\0' && *s != ',') {
path = xstrdup(s);
- path[strcspn (path, ",")] = '\0';
+ path[strcspn(path, ",")] = '\0';
}
}
if (path == NULL && (path = make_label(label)) == NULL) {
diff --git a/tty-term.c b/tty-term.c
index 2da8a8f5..654b926d 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -400,7 +400,7 @@ tty_term_find(char *name, int fd, char **cause)
term->name = xstrdup(name);
term->references = 1;
term->flags = 0;
- term->codes = xcalloc (tty_term_ncodes(), sizeof *term->codes);
+ term->codes = xcalloc(tty_term_ncodes(), sizeof *term->codes);
LIST_INSERT_HEAD(&tty_terms, term, entry);
/* Set up curses terminal. */