Skip to content

Commit

Permalink
fix(view): open pinned when edgebar is active
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 8, 2023
1 parent 6f6f3ac commit f4f2d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/edgy/edgebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ end

function M:open()
for _, view in ipairs(self.views) do
if #view.wins == 0 and view.pinned then
if view.pinned and (#view.wins == 0 or view.wins[1]:is_pinned()) then
view:open_pinned()
end
end
Expand Down

0 comments on commit f4f2d0f

Please sign in to comment.