From 7475165cd87d443da34da11298e638d3d17f43e9 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 8 Feb 2017 15:49:29 +0000 Subject: Some other tidying bits. --- tty.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 1b1ae480..02143f97 100644 --- a/tty.c +++ b/tty.c @@ -1156,8 +1156,6 @@ tty_cmd_alignmenttest(struct tty *tty, const struct tty_ctx *ctx) void tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx) { - struct window_pane *wp = ctx->wp; - if (ctx->xoff + ctx->ocx > tty->sx - 1 && ctx->ocy == ctx->orlower) { if (tty_pane_full_width(tty, ctx)) tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower); @@ -1167,7 +1165,7 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx) tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); - tty_cell(tty, ctx->cell, wp); + tty_cell(tty, ctx->cell, ctx->wp); } void -- cgit