diff options
author | nicm <nicm> | 2014-01-09 13:58:06 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-01-09 13:58:06 +0000 |
commit | 994cb872cfb5ef49a08a714d093d92bfee79b0e8 (patch) | |
tree | 05c8cd05b5ca00c986bdc4a8a9dd965ff29f7b93 | |
parent | 66829ee12e45656fccfe8879b7ac2f983d138b42 (diff) | |
download | rtmux-994cb872cfb5ef49a08a714d093d92bfee79b0e8.tar.gz rtmux-994cb872cfb5ef49a08a714d093d92bfee79b0e8.tar.bz2 rtmux-994cb872cfb5ef49a08a714d093d92bfee79b0e8.zip |
Style and comment fixes from Tiago Cunha.
-rw-r--r-- | grid.c | 2 | ||||
-rw-r--r-- | options.c | 2 | ||||
-rw-r--r-- | window-choose.c | 3 |
3 files changed, 3 insertions, 4 deletions
@@ -644,7 +644,7 @@ grid_string_cells(struct grid *gd, u_int px, u_int py, u_int nx, if (trim) { while (off > 0 && buf[off - 1] == ' ') off--; - } + } buf[off] = '\0'; return (buf); @@ -26,7 +26,7 @@ /* * Option handling; each option has a name, type and value and is stored in - * a splay tree. + * a red-black tree. */ RB_GENERATE(options_tree, options_entry, entry, options_cmp); diff --git a/window-choose.c b/window-choose.c index 70c20085..77add5e4 100644 --- a/window-choose.c +++ b/window-choose.c @@ -345,8 +345,7 @@ window_choose_collapse(struct window_pane *wp, struct session *s) * assign the actual result we want to render and copy the new one over * the top of it. */ - for (i = 0; i < ARRAY_LENGTH(&data->list); i++) - { + for (i = 0; i < ARRAY_LENGTH(&data->list); i++) { item = &ARRAY_ITEM(&data->list, i); wcd = item->wcd; |