From dc62fd174f6c5887e958b9b9bc8305ddd7c428a8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 29 Nov 2019 04:00:21 -0500 Subject: fix applying combining characters to wide characters --- tests/text.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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] -- cgit v1.2.3-54-g00ecf