diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-16 23:28:05 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-16 23:29:28 +0300 |
| commit | 4a3302d19a2baa3a33e910e0088c24e780905b90 (patch) | |
| tree | dcaf76fae1c82102d933c9225b17ca7ac5d3a847 /src/persist/restore.rs | |
| parent | 550e9f8cc085f428429f5cf2da0bb2dba897e8b8 (diff) | |
chore: update vendored libghostty-vt
refs #276
Diffstat (limited to 'src/persist/restore.rs')
| -rw-r--r-- | src/persist/restore.rs | 13 |
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, }, )]), |
