diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 21:54:21 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-25 21:54:21 -0600 |
| commit | 8783efd12edd6ab739b8eee7776d6c744df4f677 (patch) | |
| tree | badd8a2f1485c15280cdf7c64a167b9ffd0e47c5 /tests/tools/ptydrive.py | |
| parent | c980daddaa17460a65fe1ce7511b680279381dc1 (diff) | |
| parent | 87c6a0f8f822c57b4f63bc8bb099a33307871414 (diff) | |
| download | zash-editor/vi-v-dot.tar.gz | |
Merge pull request #39 from skurtz97/editor/one-editoreditor/vi-v-dot
interactive: one editor, no library
Diffstat (limited to 'tests/tools/ptydrive.py')
| -rw-r--r-- | tests/tools/ptydrive.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/tools/ptydrive.py b/tests/tools/ptydrive.py index ee1ebca..32503ee 100644 --- a/tests/tools/ptydrive.py +++ b/tests/tools/ptydrive.py @@ -90,9 +90,6 @@ def clean(data): for ln in data.split(b"\n"): parts = [p for p in ln.split(b"\r") if p] lines.append(parts[-1] if parts else b"") - data = b"\n".join(lines).replace(b"\x07", b"") - # A NUL written to a terminal puts nothing on the screen; libedit emits - # a run of them when it redraws a line after a completion. - return data.replace(b"\x00", b"") + return b"\n".join(lines).replace(b"\x07", b"") main() |
