Skip to content

Commit

Permalink
fix(api): make sure new=true works when opening with a mode string
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent ed4bd42 commit 398ac76
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 @@ -45,7 +45,7 @@ end
function M.open(opts)
opts = opts or {}
local view, _opts = M._find_last(opts)
if not view or opts.new then
if not view or _opts.new then
if not _opts.mode then
error("No mode specified")
end
Expand Down

0 comments on commit 398ac76

Please sign in to comment.