From 93aa3f3c213ca308e0834fb88e804a9966d1ccb8 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 26 Sep 2008 07:34:12 +0000 Subject: [PATCH] Make RIS also reset scroll region. --- input.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/input.c b/input.c index 72a74b6f..b69cd1b5 100644 --- a/input.c +++ b/input.c @@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.60 2008-09-26 06:45:26 nicm Exp $ */ +/* $Id: input.c,v 1.61 2008-09-26 07:34:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -657,6 +657,9 @@ input_handle_standard_two(u_char ch, struct input_ctx *ictx) ictx->saved_cx = 0; ictx->saved_cy = 0; + screen_write_scrollregion( + &ictx->ctx, 0, screen_size_y(ictx->ctx.s) - 1); + screen_write_insertmode(&ictx->ctx, 0); screen_write_kcursormode(&ictx->ctx, 0); screen_write_kkeypadmode(&ictx->ctx, 0);