Skip to content

Commit

Permalink
fix: fixed auto_open swicth_to_parent. Fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Apr 23, 2021
1 parent abef115 commit 7cf1aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function View.create(opts)
local buffer = View:new(opts)
buffer:setup(opts)

if opts and opts.auto then View.switch_to_parent() end
if opts and opts.auto then buffer:switch_to_parent() end
return buffer
end

Expand Down

0 comments on commit 7cf1aa1

Please sign in to comment.