* fhandler_console.cc (fhandler_console::char_command): Properly use calculated

value rather than directly using dev_state.args[0].
This commit is contained in:
Christopher Faylor 2014-03-09 18:46:30 +00:00
parent 8e513b0217
commit e8036b41ab
2 changed files with 6 additions and 1 deletions

View 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.

View 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;