mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-28 17:14:39 +00:00
search: reset selected match when the needle changes
This commit is contained in:
@@ -291,6 +291,10 @@ fn changeNeedle(self: *Thread, needle: []const u8) !void {
|
||||
.{ .total_matches = 0 },
|
||||
self.opts.event_userdata,
|
||||
);
|
||||
cb(
|
||||
.{ .selected_match = null },
|
||||
self.opts.event_userdata,
|
||||
);
|
||||
cb(
|
||||
.{ .viewport_matches = &.{} },
|
||||
self.opts.event_userdata,
|
||||
|
||||
Reference in New Issue
Block a user