summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-11-02 20:35:53 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-11-05 07:58:21 +1100
commit37be9dbea18f52a544a1dd134657c02c1ee61aef (patch)
treea18a51d7f998e41a76a2268c897d34133241229b /vendor
parentf6ec7babf55c4a43bc8048e8a84970a8de8250b9 (diff)
support scrolling left and right
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/jesseduffield/gocui/view.go26
-rw-r--r--vendor/modules.txt2
2 files changed, 26 insertions, 2 deletions
diff --git a/vendor/github.com/jesseduffield/gocui/view.go b/vendor/github.com/jesseduffield/gocui/view.go
index 9fc923800..4edc5a58d 100644
--- a/vendor/github.com/jesseduffield/gocui/view.go
+++ b/vendor/github.com/jesseduffield/gocui/view.go
@@ -475,9 +475,33 @@ func (v *View) SetOrigin(x, y int) error {
return nil
}
+func (v *View) SetOriginX(x int) error {
+ if x < 0 {
+ return ErrInvalidPoint
+ }
+ v.ox = x
+ return nil
+}
+
+func (v *View) SetOriginY(y int) error {
+ if y < 0 {
+ return ErrInvalidPoint
+ }
+ v.oy = y
+ return nil
+}
+
// Origin returns the origin position of the view.
func (v *View) Origin() (x, y int) {
- return v.ox, v.oy
+ return v.OriginX(), v.OriginY()
+}
+
+func (v *View) OriginX() int {
+ return v.ox
+}
+
+func (v *View) OriginY() int {
+ return v.oy
}
// SetWritePos sets the write position of the view's internal buffer.
diff --git a/vendor/modules.txt b/vendor/modules.txt
index ee620b0f6..66d582ce3 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -161,7 +161,7 @@ github.com/jesseduffield/go-git/v5/utils/merkletrie/filesystem
github.com/jesseduffield/go-git/v5/utils/merkletrie/index
github.com/jesseduffield/go-git/v5/utils/merkletrie/internal/frame
github.com/jesseduffield/go-git/v5/utils/merkletrie/noder
-# github.com/jesseduffield/gocui v0.3.1-0.20211102081536-e4eee64f4d13
+# github.com/jesseduffield/gocui v0.3.1-0.20211102093457-be3a05cf7131
## explicit
github.com/jesseduffield/gocui
# github.com/jesseduffield/minimal/gitignore v0.3.3-0.20211018110810-9cde264e6b1e