aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/text.rs')
-rw-r--r--tests/text.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/text.rs b/tests/text.rs
index 5f5dbef..51ee297 100644
--- a/tests/text.rs
+++ b/tests/text.rs
@@ -163,6 +163,10 @@ fn combining() {
parser.process("\u{0301}".as_bytes());
assert_eq!(parser.screen().cursor_position(), (1, 0));
assert_eq!(parser.screen().contents(), format!("{}á", "a".repeat(79)));
+
+ parser.process("\x1b[H\x1b[Ja\u{0301}".as_bytes());
+ assert_eq!(parser.screen().cell(0, 0).unwrap().contents(), "a\u{0301}");
+ assert_eq!(parser.screen().cell(0, 1).unwrap().contents(), "");
}
#[test]