Skip to content

Commit 397ce24

Browse files
committed
fix(view): The pivot producer wasn't applied to the current layout
(fixes #378)
1 parent 6780a8a commit 397ce24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/diffview/scene/views/standard/standard_view.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function StandardView:use_layout(layout)
103103
self.cur_layout = layout:clone()
104104
self.layouts[layout.class] = self.cur_layout
105105

106-
layout.pivot_producer = function()
106+
self.cur_layout.pivot_producer = function()
107107
local was_open = self.panel:is_open()
108108
local was_only_win = was_open and #utils.tabpage_list_normal_wins(self.tabpage) == 1
109109
self.panel:close()

0 commit comments

Comments
 (0)