We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a687364 commit 8e4622aCopy full SHA for 8e4622a
1 file changed
crates/pty_terminal_test/src/lib.rs
@@ -46,7 +46,9 @@ impl TestTerminal {
46
47
impl Reader {
48
fn sanitized_screen_contents(&self) -> String {
49
- self.pty.get_ref().screen_contents().replace(MILESTONE_FENCE_CHAR, "")
+ let mut screen = self.pty.get_ref().screen_contents();
50
+ screen.retain(|ch| ch != MILESTONE_FENCE_CHAR);
51
+ screen
52
}
53
54
/// Reads from the PTY until a milestone with the given name is encountered.
0 commit comments