From 4227bdedde837347ecd83510b976ab13d474b2b9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 19 Nov 2021 03:40:51 -0500 Subject: fix up some more issues with row_formatted handle cursor positioning and wrapping a bit better --- tests/data/fixtures/attrs.in | 1 + tests/data/fixtures/attrs/10.json | 17 +++++++++++++++++ tests/data/fixtures/attrs/10.typescript | 1 + 3 files changed, 19 insertions(+) create mode 100644 tests/data/fixtures/attrs/10.json create mode 100644 tests/data/fixtures/attrs/10.typescript (limited to 'tests') diff --git a/tests/data/fixtures/attrs.in b/tests/data/fixtures/attrs.in index 0edae4e..4fe65cb 100644 --- a/tests/data/fixtures/attrs.in +++ b/tests/data/fixtures/attrs.in @@ -7,3 +7,4 @@ f\x1b[1mo\x1b[3mo\x1b[4mo\x1b[7mo \x1bcfoo \x1b[1;2H\x1b[4;7mo\x1b[m \x1b[1;1H\x1b[4;7m\x1b[X\x1b[m +\x1bc\x1b[1;79H\x1b[31mab diff --git a/tests/data/fixtures/attrs/10.json b/tests/data/fixtures/attrs/10.json new file mode 100644 index 0000000..b6cb478 --- /dev/null +++ b/tests/data/fixtures/attrs/10.json @@ -0,0 +1,17 @@ +{ + "contents": " ab", + "cells": { + "0,78": { + "contents": "a", + "fgcolor": "1" + }, + "0,79": { + "contents": "b", + "fgcolor": "1" + } + }, + "cursor_position": [ + 0, + 80 + ] +} \ No newline at end of file diff --git a/tests/data/fixtures/attrs/10.typescript b/tests/data/fixtures/attrs/10.typescript new file mode 100644 index 0000000..ba2cb07 --- /dev/null +++ b/tests/data/fixtures/attrs/10.typescript @@ -0,0 +1 @@ +cab \ No newline at end of file -- cgit v1.2.3-54-g00ecf