summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authorRay Lai <ray@openbsd.org>2009-06-05 03:13:16 +0000
committerRay Lai <ray@openbsd.org>2009-06-05 03:13:16 +0000
commit74749e8705a49ddda7a742f44bae5865be3f7a70 (patch)
tree7401aa163206769abbc49aedf52181d90968e3e0 /screen-write.c
parent85e0d8a221314869458169955f218c9971f5bcb6 (diff)
Remove trailing newlines, spaces, and tabs.
No binary change.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/screen-write.c b/screen-write.c
index d7d56d97..f0cdec30 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -89,7 +89,7 @@ screen_write_strlen(int utf8flag, const char *fmt, ...)
size++;
ptr++;
}
- }
+ }
return (size);
}
@@ -148,7 +148,7 @@ screen_write_vnputs(struct screen_write_ctx *ctx, ssize_t maxlen,
*utf8buf = *ptr;
ptr++;
}
-
+
width = utf8_width(utf8buf);
if (maxlen > 0 && size + width > (size_t) maxlen) {
while (size < (size_t) maxlen) {
@@ -301,12 +301,12 @@ screen_write_alignmenttest(struct screen_write_ctx *ctx)
memcpy(&gc, &grid_default_cell, sizeof gc);
gc.data = 'E';
-
+
for (yy = 0; yy < screen_size_y(s); yy++) {
for (xx = 0; xx < screen_size_x(s); xx++)
grid_view_set_cell(s->grid, xx, yy, &gc);
}
-
+
s->cx = 0;
s->cy = 0;