From 599dd82f96b9d091aae78300aa6c3fbc81f9eb69 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 9 Aug 2026 06:54:27 -0300 Subject: review pass: fix the eaten Tab, drop the duplicated code, cover the gaps --- test/snapshots/lspcomplete.snap | 49 ++++++++--------------------------------- 1 file changed, 9 insertions(+), 40 deletions(-) (limited to 'test/snapshots/lspcomplete.snap') diff --git a/test/snapshots/lspcomplete.snap b/test/snapshots/lspcomplete.snap index 7393b209..8b7854cd 100644 --- a/test/snapshots/lspcomplete.snap +++ b/test/snapshots/lspcomplete.snap @@ -66,52 +66,21 @@ key tab wait 15000 a.zig:2: stable 700 15000 snap completion -# Nineteen more Tabs. Every one of them answers, and every answer REFILLS the -# one `+Search` rather than opening its twin: before that fix six presses left -# six byte-identical panes, twenty left fifteen with the file crushed to a -# single visible line, and from the sixteenth on freeSlot returned null and the -# keystroke was eaten for the rest of the session with nothing said. The golden -# below is the assertion — one file pane, one results pane, same as after the -# first press. -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 -key tab -settle 150 +# Two more Tabs. Every one of them answers, and every answer REFILLS the one +# `+Search` rather than opening its twin. The SECOND press is already the whole +# assertion: without the refill it leaves a second byte-identical `+Search` and +# this golden diverges. What TWENTY do is only worse in degree — fifteen +# stacked panes, the file crushed to one visible line, and from the sixteenth +# on freeSlot returns null and the keystroke is eaten for the rest of the +# session — and that story lives in docs/lsp.md rather than in three seconds of +# every suite run. One file pane, one results pane, same as after the first. key tab settle 150 key tab settle 150 key tab stable 700 20000 -snap twentytabs +snap refill # The pane is still in insert mode, which is right — the query answered beside # the cursor and typing goes on — so walking the answer means leaving it first, # the same as for any other results buffer. -- cgit v1.3