]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_console.cc (fhandler_console::char_command): Properly use calculated
authorChristopher Faylor <me@cgf.cx>
Sun, 9 Mar 2014 18:46:30 +0000 (18:46 +0000)
committerChristopher Faylor <me@cgf.cx>
Sun, 9 Mar 2014 18:46:30 +0000 (18:46 +0000)
value rather than directly using dev_state.args[0].

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_console.cc

index 8fe91e1fd1399be15988f9051250a3432676cbcf..ffa30dd59461a69ab8d4016488981300efb2095c 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-09  Christopher Faylor  <me.cygwin2014@cgf.cx>
+
+       * fhandler_console.cc (fhandler_console::char_command): Properly use
+       calculated value rather than directly using dev_state.args[0].
+
 2014-03-09  Christopher Faylor  <me.cygwin2014@cgf.cx>
 
        * dir.cc (opendir): Propagate any errno from build_fh_name.
index 908e6d74e5a3a9b8edc8e995c63e656513f1a616..a1b1752c8ce84b3deefd5f5e26eed7adf3af83a0 100644 (file)
@@ -1839,7 +1839,7 @@ fhandler_console::char_command (char c)
     case 'M':                          /* DL - delete lines */
       n = dev_state.args[0] ?: 1;
       cursor_get (&x, &y);
-      scroll_buffer (0, y + dev_state.args[0], -1, -1, 0, y);
+      scroll_buffer (0, y + n, -1, -1, 0, y);
       break;
     case '@':                          /* IC - insert chars */
       n = dev_state.args[0] ?: 1;
This page took 0.036688 seconds and 5 git commands to generate.