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

- The code added by 8121b606e8 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
1 changed files with 1 additions and 0 deletions

View File

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