* fhandler_console.cc (dev_console::save_restore): Save entire line of current

cursor position.
This commit is contained in:
Christopher Faylor 2014-03-10 17:33:17 +00:00
parent cda5aac102
commit ebfec24391
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-03-10 Christopher Faylor <me.cygwin2014@cgf.cx>
* fhandler_console.cc (dev_console::save_restore): Save entire line of
current cursor position.
2014-03-09 Christopher Faylor <me.cygwin2014@cgf.cx>
* fhandler_console.cc (fhandler_console::save_restore): Save only until

View File

@ -1457,8 +1457,9 @@ dev_console::save_restore (HANDLE h, char c)
if (c == 'h') /* save */
{
fillin (h);
save_bufsize.Y = dwEnd.Y + 1; /* Assume starting from 0/0 */
save_bufsize.X = b.dwSize.X;
if ((save_bufsize.Y = dwEnd.Y + 2) > b.dwSize.Y)
save_bufsize.X = b.dwSize.Y;
if (save_buf)
cfree (save_buf);