Pad/internal/ui
Greg Pomerantz ebd264150d editor/search: fix nil-handler click crash and '1 / 0' match counter
Tapping the find-bar/browser search input (MAIN-owned GioEditors with no
tap interaction) registered a click region with a nil handler; the logic
loop called the nil handler and panicked the goroutine. Skip nil-handler
clicks in CheckGestures (the widget handles its own click for focus/caret)
and guard the input loop so a malformed event can never panic.

Fix the '1 / 0' counter on session restore with an empty query: FindState.Cur
is documented '-1 when none selected' but its Go zero value is 0, so a
restored/reset state with no matches read as 'match 1 of 0'. Only print
'N / M' when Cur is a valid index, and reset Cur=-1 in findReset and the
restore path.
2026-10-26 22:19:44 -04:00
..
icons Add in-file search (find bar) 2026-08-20 00:02:54 -04:00
caret_point_test.go Handle drags: 1:1 finger tracking with cross-flip; fix caret/taps on empty lines 2026-08-19 22:34:12 -04:00
element.go IME: force a re-syncing snippet re-push when the IME desynchronizes 2026-09-13 18:23:06 -04:00
layout.go Make the editor top and bottom bars ~30% taller for bigger tap targets 2026-09-03 12:34:18 -04:00
pinch_test.go Pinch-to-font-size (continuous, content-point pinned) + IME-open scroll fix 2026-08-23 09:00:51 -04:00
pinch_tracker.go Pinch-to-font-size (continuous, content-point pinned) + IME-open scroll fix 2026-08-23 09:00:51 -04:00
real_draw_probe_test.go Pinch-to-font-size (continuous, content-point pinned) + IME-open scroll fix 2026-08-23 09:00:51 -04:00
render.go editor/search: fix nil-handler click crash and '1 / 0' match counter 2026-10-26 22:19:44 -04:00
reveal_focus_drain_test.go Pinch-to-font-size (continuous, content-point pinned) + IME-open scroll fix 2026-08-23 09:00:51 -04:00
tag_identity_test.go Pinch-to-font-size (continuous, content-point pinned) + IME-open scroll fix 2026-08-23 09:00:51 -04:00
unit.go Pinch-to-font-size (continuous, content-point pinned) + IME-open scroll fix 2026-08-23 09:00:51 -04:00