summaryrefslogtreecommitdiffstats
path: root/input.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 /input.c
parent6c9862662fd2cccdc55be9d447a27b10f33ed8ea (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 'input.c')
-rw-r--r--input.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/input.c b/input.c
index 1f529df0..29d0f254 100644
--- a/input.c
+++ b/input.c
@@ -230,7 +230,7 @@ input_init(struct window_pane *wp)
ictx->string_len = 0;
ictx->string_buf = NULL;
- memcpy(&ictx->cell, &grid_default_cell, sizeof ictx->cell);
+ memcpy(&ictx->cell, &grid_default_cell, sizeof ictx->cell);
memcpy(&ictx->saved_cell, &grid_default_cell, sizeof ictx->saved_cell);
ictx->saved_cx = 0;
@@ -297,7 +297,7 @@ input_state_first(u_char ch, struct input_ctx *ictx)
}
#if 0
- if (INPUT_C1CONTROL(ch)) {
+ if (INPUT_C1CONTROL(ch)) {
ch -= 0x40;
if (ch == '[')
input_state(ictx, input_state_sequence_first);
@@ -591,7 +591,7 @@ input_handle_character(u_char ch, struct input_ctx *ictx)
if (ch > 0x7f && options_get_number(&wp->window->options, "utf8")) {
if (utf8_open(&ictx->utf8data, ch)) {
- log_debug2("-- utf8 size %zu: %zu: %hhu (%c)",
+ log_debug2("-- utf8 size %zu: %zu: %hhu (%c)",
ictx->utf8data.size, ictx->off, ch, ch);
input_state(ictx, input_state_utf8);
return;
@@ -945,7 +945,7 @@ input_handle_sequence_da(struct input_ctx *ictx)
return;
if (n != 0)
return;
-
+
bufferevent_write(wp->event, "\033[?1;2c", (sizeof "\033[?1;2c") - 1);
}
@@ -1164,7 +1164,7 @@ input_handle_sequence_sm(struct input_ctx *ictx)
log_debug("kcursor on");
break;
case 3: /* DECCOLM */
- screen_write_cursormove(&ictx->ctx, 0, 0);
+ screen_write_cursormove(&ictx->ctx, 0, 0);
screen_write_clearscreen(&ictx->ctx);
break;
case 25: /* TCEM */
@@ -1240,7 +1240,7 @@ input_handle_sequence_rm(struct input_ctx *ictx)
log_debug("kcursor off");
break;
case 3: /* DECCOLM */
- screen_write_cursormove(&ictx->ctx, 0, 0);
+ screen_write_cursormove(&ictx->ctx, 0, 0);
screen_write_clearscreen(&ictx->ctx);
break;
case 25: /* TCEM */
@@ -1257,7 +1257,7 @@ input_handle_sequence_rm(struct input_ctx *ictx)
sx = screen_size_x(s);
sy = screen_size_y(s);
- /*
+ /*
* Exit alternative screen mode and restore the copied
* grid.
*/
@@ -1284,7 +1284,7 @@ input_handle_sequence_rm(struct input_ctx *ictx)
* Turn history back on (so resize can use it) and then
* resize back to the current size.
*/
- wp->base.grid->flags |= GRID_HISTORY;
+ wp->base.grid->flags |= GRID_HISTORY;
if (sy > wp->saved_grid->sy)
screen_resize(s, sx, sy);
@@ -1372,7 +1372,7 @@ input_handle_sequence_sgr(struct input_ctx *ictx)
if (ARRAY_LENGTH(&ictx->args) == 0) {
attr = gc->attr;
memcpy(gc, &grid_default_cell, sizeof *gc);
- gc->attr |= (attr & GRID_ATTR_CHARSET);
+ gc->attr |= (attr & GRID_ATTR_CHARSET);
return;
}