From 003a4d085fd4b99ac96f2bad8219b585732f18eb Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 3 Dec 2021 01:54:03 -0500 Subject: another wide char/line wrapping edge case --- tests/data/fixtures/wrap.in | 1 + tests/data/fixtures/wrap/31.json | 20 ++++++++++++++++++++ tests/data/fixtures/wrap/31.typescript | 1 + 3 files changed, 22 insertions(+) create mode 100644 tests/data/fixtures/wrap/31.json create mode 100644 tests/data/fixtures/wrap/31.typescript (limited to 'tests') diff --git a/tests/data/fixtures/wrap.in b/tests/data/fixtures/wrap.in index 491034d..e351293 100644 --- a/tests/data/fixtures/wrap.in +++ b/tests/data/fixtures/wrap.in @@ -28,3 +28,4 @@ a \x1bc\x1b[1;80Haa\x1b[T\x1b[@ \x1bc\na\x1b[1;79Hデ\n \x1bc\x1b[1;79Hネa\x1b[1;79Hb +\x1bc\x1b[1;79Hネa\x1b[1;78Hネ diff --git a/tests/data/fixtures/wrap/31.json b/tests/data/fixtures/wrap/31.json new file mode 100644 index 0000000..8be1892 --- /dev/null +++ b/tests/data/fixtures/wrap/31.json @@ -0,0 +1,20 @@ +{ + "contents": " ネ\na", + "cells": { + "0,77": { + "contents": "ネ", + "is_wide": true + }, + "0,78": { + "contents": "", + "is_wide_continuation": true + }, + "1,0": { + "contents": "a" + } + }, + "cursor_position": [ + 0, + 79 + ] +} \ No newline at end of file diff --git a/tests/data/fixtures/wrap/31.typescript b/tests/data/fixtures/wrap/31.typescript new file mode 100644 index 0000000..f435b65 --- /dev/null +++ b/tests/data/fixtures/wrap/31.typescript @@ -0,0 +1 @@ +cネaネ \ No newline at end of file -- cgit v1.2.3-54-g00ecf