Fix misparse of ESC[?9r sequence; I must find out what it _should_ do
[u/mdw/putty] / terminal.c
index 4d0e66e..4ecb39c 100644 (file)
@@ -929,7 +929,7 @@ void term_out(void) {
                }
                break;
              case 'r':                /* set scroll margins */
-               if (esc_nargs <= 2) {
+               if (!esc_query && esc_nargs <= 2) {
                    int top, bot;
                    top = def(esc_args[0], 1) - 1;
                    if (top < 0)