From f5d5f602dba0229335ec44b817c7822c73171e29 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 20 Nov 2019 13:16:05 -0500 Subject: combining characters should also trigger a cursor wrap this seems pretty weird, but it is what all other terminals i can find do, so --- tests/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/text.rs') diff --git a/tests/text.rs b/tests/text.rs index a962741..81201a1 100644 --- a/tests/text.rs +++ b/tests/text.rs @@ -160,7 +160,7 @@ fn combining() { assert_eq!(parser.screen().contents(), "a".repeat(80)); parser.process("\u{0301}".as_bytes()); - assert_eq!(parser.screen().cursor_position(), (0, 80)); + assert_eq!(parser.screen().cursor_position(), (1, 0)); assert_eq!(parser.screen().contents(), format!("{}รก", "a".repeat(79))); } -- cgit v1.2.3-54-g00ecf