aboutsummaryrefslogtreecommitdiff
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-12-03 22:50:09 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-12-03 22:50:09 +0000
commit15a64b805e46584d37cc6745383709632e287999 (patch)
tree5a55f5006585c9cdde05163251fd99da243575b5 /screen-redraw.c
parent6c9862662fd2cccdc55be9d447a27b10f33ed8ea (diff)
downloadrtmux-15a64b805e46584d37cc6745383709632e287999.tar.gz
rtmux-15a64b805e46584d37cc6745383709632e287999.tar.bz2
rtmux-15a64b805e46584d37cc6745383709632e287999.zip
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 'screen-redraw.c')
-rw-r--r--screen-redraw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 105cd4f4..03dd52db 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -67,7 +67,7 @@ screen_redraw_cell_border(struct client *c, u_int px, u_int py)
}
/* Top/bottom borders. */
- if ((wp->xoff == 0 || px >= wp->xoff - 1) &&
+ if ((wp->xoff == 0 || px >= wp->xoff - 1) &&
px <= wp->xoff + wp->sx) {
if (wp->yoff != 0 && py == wp->yoff - 1)
return (1);
@@ -105,7 +105,7 @@ screen_redraw_check_cell(struct client *c, u_int px, u_int py)
if (!screen_redraw_cell_border(c, px, py))
return (CELL_INSIDE);
- /*
+ /*
* Construct a bitmask of whether the cells to the left (bit
* 4), right, top, and bottom (bit 1) of this cell are borders.
*/
@@ -119,7 +119,7 @@ screen_redraw_check_cell(struct client *c, u_int px, u_int py)
if (py <= w->sy && screen_redraw_cell_border(c, px, py + 1))
borders |= 1;
- /*
+ /*
* Figure out what kind of border this cell is. Only one bit
* set doesn't make sense (can't have a border cell with no
* others connected).
@@ -263,7 +263,7 @@ screen_redraw_draw_number(struct client *c, struct window_pane *wp)
tty_puts(tty, buf);
return;
}
-
+
px -= len * 3;
py -= 2;
@@ -275,7 +275,7 @@ screen_redraw_draw_number(struct client *c, struct window_pane *wp)
if (*ptr < '0' || *ptr > '9')
continue;
idx = *ptr - '0';
-
+
for (j = 0; j < 5; j++) {
for (i = px; i < px + 5; i++) {
tty_cursor(tty, xoff + i, yoff + py + j);