From 2ffb815341c9c97568d4553745eda8e470f5c37a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 6 Dec 2019 21:25:41 -0500 Subject: handle line wrapping with wide characters + combining characters --- tests/data/fixtures/combining.in | 1 + tests/data/fixtures/combining/14.json | 17 +++++++++++++++++ tests/data/fixtures/combining/14.typescript | 1 + 3 files changed, 19 insertions(+) create mode 100644 tests/data/fixtures/combining/14.json create mode 100644 tests/data/fixtures/combining/14.typescript (limited to 'tests/data') diff --git a/tests/data/fixtures/combining.in b/tests/data/fixtures/combining.in index b9c62ca..5f62920 100644 --- a/tests/data/fixtures/combining.in +++ b/tests/data/fixtures/combining.in @@ -11,3 +11,4 @@ a \u{0301} \x1b[H\x1b[Ja\u{0301} \x1b[H\x1b[J\x1b[2C\u{0301} +\x1b[H\x1b[J\x1b[1;79Ha\x08\u{301} diff --git a/tests/data/fixtures/combining/14.json b/tests/data/fixtures/combining/14.json new file mode 100644 index 0000000..bdc1fe2 --- /dev/null +++ b/tests/data/fixtures/combining/14.json @@ -0,0 +1,17 @@ +{ + "contents": " á", + "cells": { + "0,78": { + "contents": "á", + "is_wide": true + }, + "0,79": { + "contents": "", + "is_wide_continuation": true + } + }, + "cursor_position": [ + 0, + 79 + ] +} \ No newline at end of file diff --git a/tests/data/fixtures/combining/14.typescript b/tests/data/fixtures/combining/14.typescript new file mode 100644 index 0000000..513bc90 --- /dev/null +++ b/tests/data/fixtures/combining/14.typescript @@ -0,0 +1 @@ +á \ No newline at end of file -- cgit v1.2.3-54-g00ecf