diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2024-01-08 18:02:55 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2024-01-25 11:34:59 +1100 |
commit | 269ef7f250fb245458d231d8733beca4765f0d93 (patch) | |
tree | 3725934b2ea9b232655a0729b7b5a21b0d871fbb /pkg/gui/filetree | |
parent | 798225d9e1830ff0029ce6948514e8d98c9a8f61 (diff) |
Support range select for staging/discarding files
As part of this, you must now press enter on a merge conflict file
to focus the merge view; you can no longer press space and if you do
it will raise an error.
Diffstat (limited to 'pkg/gui/filetree')
-rw-r--r-- | pkg/gui/filetree/node.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/filetree/node.go b/pkg/gui/filetree/node.go index efb64f649..e38a1c5de 100644 --- a/pkg/gui/filetree/node.go +++ b/pkg/gui/filetree/node.go @@ -41,6 +41,10 @@ func (self *Node[T]) IsFile() bool { return self.File != nil } +func (self *Node[T]) GetFile() *T { + return self.File +} + func (self *Node[T]) GetPath() string { return self.Path } |