Commit Graph

303 Commits

Author SHA1 Message Date
Michael Grant
9862ea0748 Add regress test for the OSC 133 output and selection editors.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 21:13:55 +02:00
Michael Grant
1e677d8acd Add regress tests for OSC 133 reflow and history loss.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 21:10:16 +02:00
Michael Grant
b4810e5b2d Fix collapsed copy mode on resize and with the cursor below the output.
Rebuilding the folded view wrote a linefeed for every source line, including
the blank lines at the end, so shrinking the window scrolled the collapsed
output into history. Stop at the last non-blank line and rebuild a folded view
at the new size when the window is resized.

When no cursor position could be restored, the fallback used the source row,
which can be past the bottom of the shorter folded view and was then used to
index the grid. Fall back to the nearest visible line and clamp to the screen.

Keep the unfolded source only while fold view is on, so plain copy mode is
back to the incremental sync with one copy of the history. Document
toggle-output -m, and rename struct input_osc_133_ctx to struct osc133_marker.
Line numbers started with L stay absolute when fold view is toggled.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 21:05:19 +02:00
Michael Grant
0d65a0f60c Prepare collapsible OSC 133 output for review
Use the parent output-range implementation and preserve source rows and columns when output is folded or wrapped. Clear stale exit-status presence on repeated D markers. Apply the requested coding style and add regressions for folded output selections and prompt properties.
2026-10-08 21:05:19 +02:00
Michael Grant
303ff3be8e More cleanup. 2026-10-08 21:05:18 +02:00
Michael Grant
c8589c5086 Cleanup: moved the osc-133 marker save/restore into screen-write.c closer to where the issue existed. 2026-10-08 21:05:18 +02:00
Michael Grant
23bc2fe042 Fix clear issue which lost C and A osc133 markers. Several cleanups. 2026-10-08 21:05:18 +02:00
Michael Grant
c7bd288171 Add collapsible OSC 133 output to copy mode 2026-10-08 21:05:18 +02:00
Nicholas Marriott
48bbaa1172 Test for 5701. 2026-10-08 08:06:59 +01:00
Nicholas Marriott
ae33689815 Test for 5702. 2026-10-08 07:31:03 +01:00
Nicholas Marriott
5512949947 Test for 5696. 2026-10-07 14:14:02 +01:00
Nicholas Marriott
052c54fb49 Test for 5399. 2026-10-07 14:01:09 +01:00
Nicholas Marriott
b04055d577 Test for join-pane with modal floating pane. 2026-10-07 13:03:16 +01:00
Nicholas Marriott
6c30e1bc03 Make terminal bigger so test works on macOS. 2026-10-07 11:18:24 +01:00
Nicholas Marriott
a8158b2443 Fix test on macOS and add new test for tty. 2026-10-07 11:02:08 +01:00
Nicholas Marriott
f5c8e5acbd Fix tests. 2026-10-07 10:45:25 +01:00
Nicholas Marriott
3e22d43c66 Fix tests. 2026-10-07 10:16:50 +01:00
Nicholas Marriott
2d7bca72e7 Fix tests. 2026-10-07 09:42:00 +01:00
Nicholas Marriott
7b4d4074cf Fix tests. 2026-10-07 09:08:33 +01:00
Nicholas Marriott
3b20a0418a Fix tests. 2026-10-07 08:06:16 +01:00
Nicholas Marriott
20555f1508 Fix tests. 2026-10-07 07:29:44 +01:00
Nicholas Marriott
209d389a81 Fix test again. 2026-10-07 06:46:25 +01:00
Nicholas Marriott
4775bc95e1 Fix tests on macOS. 2026-10-07 06:35:49 +01:00
Nicholas Marriott
aa52838c84 Don't use so many ptys. 2026-10-07 06:28:47 +01:00
Nicholas Marriott
059df9643c Tests for 5675. 2026-10-06 18:50:37 +01:00
Nicholas Marriott
068812380f Test for drag on status line. 2026-10-06 12:28:40 +01:00
Nicholas Marriott
c067a0b1bf Tests for selection mode and redraw. 2026-10-06 09:26:29 +01:00
Nicholas Marriott
cdb8575630 Test for 5667 from David Schweikert. 2026-10-05 16:52:48 +01:00
Nicholas Marriott
e55c693d1a Test for 5688. 2026-10-05 14:46:14 +01:00
Nicholas Marriott
86a2142ded Test for 5684 from mml00 dot work at gmail dot com. 2026-10-05 09:41:50 +01:00
Nicholas Marriott
8f25579c5a Fix test again. 2026-10-04 09:18:05 +01:00
Nicholas Marriott
65a034b471 Fix test again. 2026-10-04 08:50:14 +01:00
Nicholas Marriott
bf9fac7b16 Fix test again. 2026-10-03 22:25:05 +01:00
Nicholas Marriott
59387debff Fix test. 2026-10-03 08:41:26 +01:00
Nicholas Marriott
ba738e8155 Fix another test on macOS. 2026-10-03 08:28:51 +01:00
Nicholas Marriott
bc3cf3bfa8 Fix another test on macOS. 2026-10-03 08:28:02 +01:00
Nicholas Marriott
c4a8eeb236 Fix test again. 2026-10-03 07:59:23 +01:00
Nicholas Marriott
3bdbaacd94 Fix test on macOS. 2026-10-03 07:48:52 +01:00
Nicholas Marriott
f37d4c0553 Test for 5593. 2026-10-02 16:21:13 +01:00
Nicholas Marriott
24cde9e0eb Test for 5613. 2026-10-02 16:13:12 +01:00
Nicholas Marriott
ec2f2d9f99 Tes for 5656. 2026-10-02 15:17:12 +01:00
Nicholas Marriott
5f278c8f2a Regress for damage rectangles. 2026-10-02 15:15:02 +01:00
Nicholas Marriott
4712726062 Tests for 5661 etc, from Alexandre Fiori. 2026-10-02 13:28:16 +01:00
Nicholas Marriott
ff1364a19c copy-mode -S test. 2026-10-02 13:13:32 +01:00
Nicholas Marriott
8d3172f4d4 Fix test on macOS. 2026-09-30 06:46:05 +01:00
Nicholas Marriott
ffbbdcc852 Test for 5659 from Alexandre Fiori. 2026-09-29 15:00:09 +01:00
Nicholas Marriott
30e6a552b4 More repeat tests. 2026-09-29 12:58:51 +01:00
Nicholas Marriott
3a5df8780f Fix test socket names. 2026-09-29 06:50:38 +01:00
Nicholas Marriott
6ad23bb99c Update test. 2026-09-28 17:55:47 +01:00
Nicholas Marriott
294bf0bf16 Test for 5648. 2026-09-28 12:26:40 +01:00