diff options
author | Takashi Yano via Cygwin-patches <cygwin-patches@cygwin.com> | 2020-11-23 20:03:02 +0900 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-11-23 16:23:27 +0100 |
commit | 65ee05d326ddbbc5cb60668bc5b9d631fa72ede8 (patch) | |
tree | 787f759ae807e3e8962000bd36472e24926a22ef | |
parent | fccb9d7239649d66665a92a556c6ab2b065d5f64 (diff) | |
download | cygnal-65ee05d326ddbbc5cb60668bc5b9d631fa72ede8.tar.gz cygnal-65ee05d326ddbbc5cb60668bc5b9d631fa72ede8.tar.bz2 cygnal-65ee05d326ddbbc5cb60668bc5b9d631fa72ede8.zip |
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.
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 600de085c..911945675 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -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 |