From 3271d413770f5c0d916caaa8d0dabac0b758f0f4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 3 Dec 2021 14:53:22 -0500 Subject: we want to force wrapping here even if the cursor was already correct --- tests/data/fixtures/wrap.in | 2 ++ tests/data/fixtures/wrap/33.json | 15 +++++++++++++++ tests/data/fixtures/wrap/33.typescript | 1 + tests/data/fixtures/wrap/34.json | 18 ++++++++++++++++++ tests/data/fixtures/wrap/34.typescript | 1 + 5 files changed, 37 insertions(+) create mode 100644 tests/data/fixtures/wrap/33.json create mode 100644 tests/data/fixtures/wrap/33.typescript create mode 100644 tests/data/fixtures/wrap/34.json create mode 100644 tests/data/fixtures/wrap/34.typescript (limited to 'tests') diff --git a/tests/data/fixtures/wrap.in b/tests/data/fixtures/wrap.in index b04ac81..a1b7cea 100644 --- a/tests/data/fixtures/wrap.in +++ b/tests/data/fixtures/wrap.in @@ -30,3 +30,5 @@ a \x1bc\x1b[1;79Hネa\x1b[1;79Hb \x1bc\x1b[1;79Hネa\x1b[1;78Hネ \x1bc\x1b[24;80Hab +\x1bc\x1b[23;80Ha\x1b[24;80Ha +b diff --git a/tests/data/fixtures/wrap/33.json b/tests/data/fixtures/wrap/33.json new file mode 100644 index 0000000..dd11a8a --- /dev/null +++ b/tests/data/fixtures/wrap/33.json @@ -0,0 +1,15 @@ +{ + "contents": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n a\n a", + "cells": { + "22,79": { + "contents": "a" + }, + "23,79": { + "contents": "a" + } + }, + "cursor_position": [ + 23, + 80 + ] +} \ No newline at end of file diff --git a/tests/data/fixtures/wrap/33.typescript b/tests/data/fixtures/wrap/33.typescript new file mode 100644 index 0000000..2f87627 --- /dev/null +++ b/tests/data/fixtures/wrap/33.typescript @@ -0,0 +1 @@ +caa \ No newline at end of file diff --git a/tests/data/fixtures/wrap/34.json b/tests/data/fixtures/wrap/34.json new file mode 100644 index 0000000..df7881d --- /dev/null +++ b/tests/data/fixtures/wrap/34.json @@ -0,0 +1,18 @@ +{ + "contents": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n a\n ab", + "cells": { + "21,79": { + "contents": "a" + }, + "22,79": { + "contents": "a" + }, + "23,0": { + "contents": "b" + } + }, + "cursor_position": [ + 23, + 1 + ] +} \ No newline at end of file diff --git a/tests/data/fixtures/wrap/34.typescript b/tests/data/fixtures/wrap/34.typescript new file mode 100644 index 0000000..63d8dbd --- /dev/null +++ b/tests/data/fixtures/wrap/34.typescript @@ -0,0 +1 @@ +b \ No newline at end of file -- cgit v1.2.3-54-g00ecf