Skip to content

Commit

Permalink
Fix travis whitespace in canvas.c
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanpencil committed Jun 20, 2018
1 parent 62fcbe7 commit f2a56ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libr/cons/canvas.c
Expand Up @@ -377,6 +377,8 @@ R_API void r_cons_canvas_write(RConsCanvas *c, const char *s) {

s = s_part;
if (ch == '\n') {
c->attr = Color_RESET;
stamp_attr (c, c->y*c->w + attr_x, strlen (Color_RESET));
c->y++;
s++;
if (*s == '\0' || c->y >= c->h) {
Expand Down Expand Up @@ -416,9 +418,6 @@ R_API char *r_cons_canvas_to_string(RConsCanvas *c) {
for (y = 0; y < c->h; y++) {
if (!is_first) {
o[olen++] = '\n';
int len = strlen (Color_RESET);
memcpy (o + olen, Color_RESET, len);
olen += len;
}
is_first = false;
attr_x = 0;
Expand Down

0 comments on commit f2a56ab

Please sign in to comment.