aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-08-09 09:29:55 +0200
committerGitHub <noreply@github.com>2023-08-09 09:29:55 +0200
commitbe6f680774a75a06ceede3bd7159df2388f49b04 (patch)
tree06edf44cec56f038fdae531d7880b13ba0969249 /lua
parentchore(logging): fix log string (#1444) (diff)
downloadmason-be6f680774a75a06ceede3bd7159df2388f49b04.tar
mason-be6f680774a75a06ceede3bd7159df2388f49b04.tar.gz
mason-be6f680774a75a06ceede3bd7159df2388f49b04.tar.bz2
mason-be6f680774a75a06ceede3bd7159df2388f49b04.tar.lz
mason-be6f680774a75a06ceede3bd7159df2388f49b04.tar.xz
mason-be6f680774a75a06ceede3bd7159df2388f49b04.tar.zst
mason-be6f680774a75a06ceede3bd7159df2388f49b04.zip
fix(ui): don't disable search mode if empty pattern and last-pattern is set (#1445)
Diffstat (limited to 'lua')
-rw-r--r--lua/mason/ui/instance.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason/ui/instance.lua b/lua/mason/ui/instance.lua
index c00fbe0c..2d71624c 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)