aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-29 04:00:21 -0500
committerJesse Luehrs <doy@tozt.net>2019-12-05 12:54:34 -0500
commitdc62fd174f6c5887e958b9b9bc8305ddd7c428a8 (patch)
tree8380adc7c1ebc00461d37c21087281139ce1e542 /tests
parenta9b6d72b24fffa55093201c520075d500712a3ff (diff)
downloadvt100-rust-dc62fd174f6c5887e958b9b9bc8305ddd7c428a8.tar.gz
vt100-rust-dc62fd174f6c5887e958b9b9bc8305ddd7c428a8.zip
fix applying combining characters to wide characters
Diffstat (limited to 'tests')
-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]