Skip to content

Commit

Permalink
fix: make focus the default
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent 315f624 commit ba1ae49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function M.open(opts)
local view, _opts = M.get(opts)
if view then
view:open()
if _opts.focus then
if _opts.focus ~= false then
view.win:focus()
end
return view, _opts
Expand Down

0 comments on commit ba1ae49

Please sign in to comment.