From 1f9a8e70d90265de8a3e1b0a981d3ef5b1352e52 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 4 Oct 2007 19:03:52 +0000 Subject: Incomplete resize support. --- input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 2434a24f..305a1746 100644 --- a/input.c +++ b/input.c @@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.19 2007-10-03 10:18:32 nicm Exp $ */ +/* $Id: input.c,v 1.20 2007-10-04 19:03:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -427,7 +427,9 @@ void input_handle_character(u_char ch, struct input_ctx *ictx) { log_debug2("-- ch %zu: %hhu (%c)", ictx->off, ch, ch); - + + if (ictx->s->cx > ictx->s->sx - 1 || ictx->s->cy > ictx->s->sy - 1) + return; screen_write_character(ictx->s, ch); input_store8(ictx->b, ch); } -- cgit v1.2.3