summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-05-19 18:29:56 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-05-19 18:44:53 +1000
commitcf5cefb2d6bcfd0d403faca5875124eb9b0d7480 (patch)
treedb67505182488590e152afee0d0f89d983ddaf57 /pkg/gui/gui.go
parent36ac764133d3837a22619db922bd8d54f4b0938e (diff)
allow user to scroll themselves inside merge panelv0.20.4
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index 2fc029b64..735a5465e 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -112,6 +112,10 @@ type mergingPanelState struct {
ConflictTop bool
Conflicts []commands.Conflict
EditHistory *stack.Stack
+
+ // UserScrolling tells us if the user has started scrolling through the file themselves
+ // in which case we won't auto-scroll to a conflict.
+ UserScrolling bool
}
type filePanelState struct {