Skip to content

Commit 24e98d1

Browse files
committed
Fix mouse wheel scrolling of custom patch view
Mouse wheel scrolling of the custom patch view worked *unless* a file (as opposed to a directory) is selected in the commit files view. The reason was an obvious typo in the AttachControllers call.
1 parent a50712b commit 24e98d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gui/controllers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func (gui *Gui) resetHelpersAndControllers() {
299299
)
300300

301301
controllers.AttachControllers(gui.State.Contexts.CustomPatchBuilderSecondary,
302-
verticalScrollControllerFactory.Create(gui.State.Contexts.CustomPatchBuilder),
302+
verticalScrollControllerFactory.Create(gui.State.Contexts.CustomPatchBuilderSecondary),
303303
)
304304

305305
controllers.AttachControllers(gui.State.Contexts.MergeConflicts,

0 commit comments

Comments
 (0)