From 9a5b63aa03804f6dd90e88fe2fe873a41584c518 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 11 Mar 1999 10:27:12 +0000 Subject: [PATCH] Allow CSI 0;0r to set default scroll region (previously did nothing useful) [originally from svn r85] --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index 2c411453..4d0e66e7 100644 --- a/terminal.c +++ b/terminal.c @@ -934,7 +934,7 @@ void term_out(void) { top = def(esc_args[0], 1) - 1; if (top < 0) top = 0; - bot = (esc_nargs == 1 ? rows : + bot = (esc_nargs <= 1 || esc_args[1] == 0 ? rows : def(esc_args[1], rows)) - 1; if (bot >= rows) bot = rows-1;