Skip to content

Commit

Permalink
fix(ui): don't disable search mode if empty pattern and last-pattern …
Browse files Browse the repository at this point in the history
…is set (#1445)
  • Loading branch information
williamboman committed Aug 9, 2023
1 parent 29b9b97 commit be6f680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/mason/ui/instance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ window.events:on("search:enter", function()
end)

window.events:on("search:leave", function(search)
if search == "" then
if search == "" and vim.fn.getreg "/" == "" then
mutate_state(function(state)
state.view.is_searching = false
end)
Expand Down

0 comments on commit be6f680

Please sign in to comment.