aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/text.rs')
-rw-r--r--tests/text.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/text.rs b/tests/text.rs
index d153f11..74001d1 100644
--- a/tests/text.rs
+++ b/tests/text.rs
@@ -167,6 +167,12 @@ fn combining() {
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(), "");
+
+ parser.process("\x1b[H\x1b[J\x1b[2C\u{0301}".as_bytes());
+ assert_eq!(parser.screen().cell(0, 0).unwrap().contents(), "");
+ assert_eq!(parser.screen().cell(0, 1).unwrap().contents(), " \u{0301}");
+ assert_eq!(parser.screen().cell(0, 2).unwrap().contents(), "");
+ assert_eq!(parser.screen().cell(0, 3).unwrap().contents(), "");
}
#[test]