Allow CSI 0;0r to set default scroll region (previously did nothing useful)
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 11 Mar 1999 10:27:12 +0000 (10:27 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 11 Mar 1999 10:27:12 +0000 (10:27 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@85 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index 2c41145..4d0e66e 100644 (file)
@@ -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;