core: always send start_search for refocus
parent
1bb2d4f1c2
commit
ad755b0e3d
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue