diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 15:52:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 16:13:22 -0300 |
| commit | 8953e01fba330404ded0e5b87bf4f4bb1cfddbb8 (patch) | |
| tree | 4cb5554e13cf18e340587347e75e52630fd62058 /test/snapshots/wheeldrift.golden | |
| parent | df0fe00d35c1a01a852d7518ef884ec7aab7ace6 (diff) | |
| download | pardes-8953e01fba330404ded0e5b87bf4f4bb1cfddbb8.tar.gz pardes-8953e01fba330404ded0e5b87bf4f4bb1cfddbb8.zip | |
tui: a frame with no caret hides the terminal's cursor: the frontend called showCursor for a frame with a caret and nothing for one without (dev/tui/tui.zig, the frame's end), vaxis keeps cursor_vis, so the block cursor stayed visible where the last caret was (hscroll: on the first text column of a view wheeled sideways past the caret; a +Search or a pane whose caret is off screen; a terminal pane's spawn); now win.hideCursor; the tty harness records a hidden cursor as `cursor=hidden` (where a hidden cursor was left is no one's: test/e2e_harness.zig `cursor` says `shown`, test/tty.zig's snap and stable key read it): with the harness alone no golden moved (0 of 145), with the fix ten moved, each only in snap headers from cursor=X,Y to cursor=hidden (checked line by line, golden_diff.py): collapse 2, follow 1, hscroll 1, images 2, jumps 1, lspcomplete 1, shrinktag 2, ttytaken 1, wheeldrift 4, wrap 1, re-recorded; a user saw it: a stale block cursor on the text in every frame with no caret
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/snapshots/wheeldrift.golden')
| -rw-r--r-- | test/snapshots/wheeldrift.golden | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/snapshots/wheeldrift.golden b/test/snapshots/wheeldrift.golden index 2474411c..393a57e1 100644 --- a/test/snapshots/wheeldrift.golden +++ b/test/snapshots/wheeldrift.golden @@ -16,7 +16,7 @@ | 11 line 11_0123456789_abcdefghij_ZEND | 12 line 12_0123456789_abcdefghij_ZEND | 13 line 13_0123456789_abcdefghij_ZEND -== snap drifted grid=70x17 cursor=7,4 +== snap drifted grid=70x17 cursor=hidden |4: 6 line 6_0123456789_abcdefghij_ZEND |5: 7 line 7_0123456789_abcdefghij_ZEND |6: 8 line 8_0123456789_abcdefghij_ZEND @@ -30,8 +30,8 @@ |14: 16 line 16_0123456789_abcdefghij_ZEND |15: 17 line 17_0123456789_abcdefghij_ZEND |16: 18 line 18_0123456789_abcdefghij_ZEND -== snap paying grid=70x17 cursor=7,4 -== snap moved grid=70x17 cursor=7,4 +== snap paying grid=70x17 cursor=hidden +== snap moved grid=70x17 cursor=hidden |4: 6 123456789_abcdefghij_ZEND |5: 7 123456789_abcdefghij_ZEND |6: 8 123456789_abcdefghij_ZEND @@ -45,7 +45,7 @@ |14: 16 0123456789_abcdefghij_ZEND |15: 17 0123456789_abcdefghij_ZEND |16: 18 0123456789_abcdefghij_ZEND -== snap rearmed grid=70x17 cursor=7,4 +== snap rearmed grid=70x17 cursor=hidden |4: 5 123456789_abcdefghij_ZEND |5: 6 123456789_abcdefghij_ZEND |6: 7 123456789_abcdefghij_ZEND |
