aboutsummaryrefslogtreecommitdiff
path: root/src/persist
diff options
context:
space:
mode:
Diffstat (limited to 'src/persist')
-rw-r--r--src/persist/restore.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/persist/restore.rs b/src/persist/restore.rs
index cd44ccf7..bd4d8382 100644
--- a/src/persist/restore.rs
+++ b/src/persist/restore.rs
@@ -1582,11 +1582,10 @@ mod tests {
.next()
.expect("restored runtime should exist");
+ let restored_text = runtime.recent_unwrapped_text(10);
assert!(
- runtime
- .recent_unwrapped_text(10)
- .contains("RESTORED_HISTORY"),
- "saved history should be visible in the restored terminal backend"
+ restored_text.contains("RESTORED_HISTORY 👨‍👩‍👧 LINK"),
+ "styled Unicode and hyperlink text should survive history replay"
);
let deadline = std::time::Instant::now() + std::time::Duration::from_secs(2);
@@ -1655,7 +1654,11 @@ mod tests {
panes: HashMap::from([(
0,
super::super::snapshot::PaneHistorySnapshot {
- ansi: "RESTORED_HISTORY\r\n".to_string(),
+ ansi: concat!(
+ "\x1b[31mRESTORED_HISTORY 👨‍👩‍👧\x1b[0m ",
+ "\x1b]8;;https://example.com\x1b\\LINK\x1b]8;;\x1b\\\r\n"
+ )
+ .to_string(),
lines: 1,
},
)]),