4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 12:59:21 +08:00

Cygwin: pty: Fix a bug in the code removing "CSI > Pm m".

- The code added by 8121b606e843c001d5ca5213d24099e04ebc62ca has a
  bug which fails to remove multiple "CSI > Pm m" sequences. This
  patch fixes the bug.
This commit is contained in:
Takashi Yano via Cygwin-patches 2020-11-23 20:03:02 +09:00 committed by Corinna Vinschen
parent fccb9d7239
commit 65ee05d326

View File

@ -2063,6 +2063,7 @@ fhandler_pty_master::pty_master_fwd_thread ()
memmove (&outbuf[start_at], &outbuf[i+1], rlen-i-1);
rlen = wlen = start_at + rlen - i - 1;
state = 0;
i = start_at - 1;
continue;
}
else