diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-12-03 22:50:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-12-03 22:50:11 +0000 |
commit | ba1906c0f6cde1edffbb454483a9ecebb8942c71 (patch) | |
tree | 27dbb1919efa0b7aff52529186b13715775f2eea /usr.bin/tmux/screen-write.c | |
parent | 01c66e11a4a92cc38c58979c53c9f0b385d4f2c4 (diff) |
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index bf22315aba5..8bcad474491 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.40 2009/11/26 21:37:13 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.41 2009/12/03 22:50:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -183,7 +183,7 @@ screen_write_vnputs(struct screen_write_ctx *ctx, ssize_t maxlen, break; } size += utf8data.width; - + gc->flags |= GRID_FLAG_UTF8; screen_write_cell(ctx, gc, &utf8data); gc->flags &= ~GRID_FLAG_UTF8; @@ -376,7 +376,7 @@ screen_write_copy(struct screen_write_ctx *ctx, bx = gl->cellsize; else bx = px + nx; - + for (xx = ax; xx < bx; xx++) { if (xx >= gl->cellsize) gc = &grid_default_cell; @@ -646,7 +646,7 @@ screen_write_insertline(struct screen_write_ctx *ctx, u_int ny) ny = s->rlower + 1 - s->cy; if (ny == 0) return; - + screen_write_initctx(ctx, &ttyctx, 0); if (s->cy < s->rupper || s->cy > s->rlower) @@ -682,7 +682,7 @@ screen_write_deleteline(struct screen_write_ctx *ctx, u_int ny) tty_write(tty_cmd_deleteline, &ttyctx); return; } - + if (ny > s->rlower + 1 - s->cy) ny = s->rlower + 1 - s->cy; if (ny == 0) @@ -728,7 +728,7 @@ screen_write_clearendofline(struct screen_write_ctx *ctx) if (s->cx <= sx - 1) grid_view_clear(s->grid, s->cx, s->cy, sx - s->cx, 1); - tty_write(tty_cmd_clearendofline, &ttyctx); + tty_write(tty_cmd_clearendofline, &ttyctx); } /* Clear to start of line from cursor. */ @@ -863,7 +863,7 @@ screen_write_linefeed(struct screen_write_ctx *ctx, int wrapped) s->cy++; ttyctx.num = wrapped; - tty_write(tty_cmd_linefeed, &ttyctx); + tty_write(tty_cmd_linefeed, &ttyctx); } /* Carriage return (cursor to start of line). */ @@ -988,7 +988,7 @@ screen_write_cell(struct screen_write_ctx *ctx, /* * If the width is zero, combine onto the previous character, if - * there is space. + * there is space. */ if (width == 0) { if (screen_write_combine(ctx, utf8data) == 0) { |