diff options
author | Christopher Faylor <me@cgf.cx> | 2014-03-09 22:46:30 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2014-03-09 22:46:30 +0400 |
commit | e8036b41ab5b106448a5211d08d2fba65fa9d931 (patch) | |
tree | b127f30a0084255b1daaab80116cc1803e064dec /winsup/cygwin/fhandler_console.cc | |
parent | 8e513b0217c044ed42c61f250bf3065004dc137b (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.cc | 2 |
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; |