Skip to content

Commit

Permalink
Style and comment fixes from Tiago Cunha.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Jan 9, 2014
1 parent 66829ee commit 994cb87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions window-choose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 994cb87

Please sign in to comment.