From ee5eb38ace9f485c44dcc0ef0c7f2a8bd525ee53 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 9 Aug 2023 09:24:51 +0200 Subject: [PATCH] fix(ui): don't disable search mode if empty pattern and last-pattern is set --- lua/mason/ui/instance.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/mason/ui/instance.lua b/lua/mason/ui/instance.lua index c00fbe0c5..2d71624ca 100644 --- a/lua/mason/ui/instance.lua +++ b/lua/mason/ui/instance.lua @@ -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)