core: always send start_search for refocus

pull/9709/head
Mitchell Hashimoto 2025-11-25 21:46:13 -08:00
parent 1bb2d4f1c2
commit ad755b0e3d
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 3 additions and 3 deletions

View File

@ -4932,16 +4932,16 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool
self.renderer_state.terminal.fullReset();
},
.start_search => if (self.search == null) {
.start_search => {
// To save resources, we don't actually start a search here,
// we just notify the apprt. The real thread will start when
// the first needles are set.
_ = try self.rt_app.performAction(
return try self.rt_app.performAction(
.{ .surface = self },
.start_search,
.{ .needle = "" },
);
} else return false,
},
.search => |text| search: {
const s: *Search = if (self.search) |*s| s else init: {