Skip to content

Commit

Permalink
Ignore NULs when building up the bracketed paste buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Jan 25, 2023
1 parent 7df16ae commit c80d933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/_xterm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def reissue_sequence_as_keys(reissue_sequence: str) -> None:
character = ESC if use_prior_escape else (yield read1())
use_prior_escape = False

if bracketed_paste:
if bracketed_paste and ord(character):
paste_buffer.append(character)

self.debug_log(f"character={character!r}")
Expand Down

0 comments on commit c80d933

Please sign in to comment.