From ad755b0e3d987af71c7adbb870d771aa0100c716 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 25 Nov 2025 21:46:13 -0800 Subject: [PATCH] core: always send start_search for refocus --- src/Surface.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Surface.zig b/src/Surface.zig index 87cbd05b9..c3740fd71 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -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: {