We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6780a8a commit 397ce24Copy full SHA for 397ce24
1 file changed
lua/diffview/scene/views/standard/standard_view.lua
@@ -103,7 +103,7 @@ function StandardView:use_layout(layout)
103
self.cur_layout = layout:clone()
104
self.layouts[layout.class] = self.cur_layout
105
106
- layout.pivot_producer = function()
+ self.cur_layout.pivot_producer = function()
107
local was_open = self.panel:is_open()
108
local was_only_win = was_open and #utils.tabpage_list_normal_wins(self.tabpage) == 1
109
self.panel:close()
0 commit comments