Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2014-03-09 22:46:30 +0400
committerChristopher Faylor <me@cgf.cx>2014-03-09 22:46:30 +0400
commite8036b41ab5b106448a5211d08d2fba65fa9d931 (patch)
treeb127f30a0084255b1daaab80116cc1803e064dec /winsup/cygwin/fhandler_console.cc
parent8e513b0217c044ed42c61f250bf3065004dc137b (diff)
* fhandler_console.cc (fhandler_console::char_command): Properly use calculated
value rather than directly using dev_state.args[0].
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 908e6d74e..a1b1752c8 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -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;