Skip to content

Commit

Permalink
fix(auto_open): dont steal focus on auto open. Fixes #344
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 18, 2023
1 parent b9e7135 commit 1f00b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/init.lua
Expand Up @@ -65,7 +65,7 @@ function Trouble.open(...)
config.options.severity = opts.severity
end

opts.focus = opts.focus == nil and true or opts.focus
opts.focus = (opts.focus == nil and not opts.auto) and true or opts.focus
opts.on_open = true

if Trouble.is_open() then
Expand Down

0 comments on commit 1f00b6f

Please sign in to comment.