Skip to content

Commit

Permalink
fix(ui.results): cancel scheduled result_focused on empty results
Browse files Browse the repository at this point in the history
  • Loading branch information
danielefongo committed Apr 23, 2024
1 parent c6d98d1 commit 174040c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/microscope/ui/results.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ local function get_focused(self)
end

local function on_empty_results_retrieved(self)
events:cancel(events.event.result_focused)
self:set_title("", "center")
self:clear()
end
Expand Down

0 comments on commit 174040c

Please sign in to comment.