diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 01:31:23 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 11:09:12 +1100 |
commit | f7772f00c47a2ea2853abd37b4a9c25dcbb78a95 (patch) | |
tree | 0a456904a43e44d0bf59f45fe0425bb3e20aefd3 /pkg/gui/filetree | |
parent | 216b5341ae1a5244449bdb5d93aea9581def2b68 (diff) |
do not jump cursor around when fixing merge conflicts
Diffstat (limited to 'pkg/gui/filetree')
-rw-r--r-- | pkg/gui/filetree/file_manager.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/filetree/file_manager.go b/pkg/gui/filetree/file_manager.go index 11504430b..f2e828a61 100644 --- a/pkg/gui/filetree/file_manager.go +++ b/pkg/gui/filetree/file_manager.go @@ -23,6 +23,10 @@ func NewFileManager(files []*models.File, log *logrus.Entry, showTree bool) *Fil } } +func (m *FileManager) InTreeMode() bool { + return m.showTree +} + func (m *FileManager) ExpandToPath(path string) { m.collapsedPaths.ExpandToPath(path) } |