From b660adabce36e90cbfbb52d95715528983376ab5 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 28 Sep 2026 22:02:04 -0300 Subject: A pane whose whole text fits in its rows never scrolls to keep a margin The scroll margin reveals text; with none off screen there is nothing to reveal. ensureCursorVisible and a centred look both leave such a pane at its top. A longer file keeps helix's clamp (hxdiff and hxparity unchanged). Co-Authored-By: Claude Opus 5.5 --- test/snapshots/lsp-client.golden | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'test/snapshots/lsp-client.golden') diff --git a/test/snapshots/lsp-client.golden b/test/snapshots/lsp-client.golden index e4ea4c90..17eb0d40 100644 --- a/test/snapshots/lsp-client.golden +++ b/test/snapshots/lsp-client.golden @@ -25,19 +25,5 @@ |20: 5 main.rs:5:13-15 |21: 6 let y = add(3, 4); |22: 7 -== snap gr-opened grid=100x25 cursor=21,6 -|3: 2 -|4: 3 fn main() { -|5: 4 let x = add(1, 2); -|6: 5 let y = add(3, 4); -|7: 6 let _ = x + y; -|8: 7 } -|9: 8 +== snap gr-opened grid=100x25 cursor=21,7 == snap gr-back grid=100x25 cursor=21,6 -|3: 1 mod lib; -|4: 2 -|5: 3 fn main() { -|6: 4 let x = add(1, 2); -|7: 5 let y = add(3, 4); -|8: 6 let _ = x + y; -|9: 7 } -- cgit v1.3