From c9ded489c94d7d12c6b5155089a0c97823aa5bc1 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 5 Apr 2021 14:19:20 +1000 Subject: bump gocui --- vendor/github.com/jesseduffield/gocui/gui.go | 3 +++ vendor/golang.org/x/sys/windows/security_windows.go | 6 +++++- vendor/modules.txt | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) (limited to 'vendor') diff --git a/vendor/github.com/jesseduffield/gocui/gui.go b/vendor/github.com/jesseduffield/gocui/gui.go index f16111165..52e2926b2 100644 --- a/vendor/github.com/jesseduffield/gocui/gui.go +++ b/vendor/github.com/jesseduffield/gocui/gui.go @@ -1202,6 +1202,9 @@ func (g *Gui) replayRecording() { waitGroup.Add(2) + // lots of duplication here due to lack of generics. Also we don't support mouse + // events because it would be awkward to replicate but it would be trivial to add + // support go func() { ticker := time.NewTicker(time.Millisecond) defer ticker.Stop() diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go index dd683724f..111c10d3a 100644 --- a/vendor/golang.org/x/sys/windows/security_windows.go +++ b/vendor/golang.org/x/sys/windows/security_windows.go @@ -1334,7 +1334,11 @@ func (absoluteSD *SECURITY_DESCRIPTOR) ToSelfRelative() (selfRelativeSD *SECURIT } func (selfRelativeSD *SECURITY_DESCRIPTOR) copySelfRelativeSecurityDescriptor() *SECURITY_DESCRIPTOR { - sdLen := (int)(selfRelativeSD.Length()) + sdLen := int(selfRelativeSD.Length()) + const min = int(unsafe.Sizeof(SECURITY_DESCRIPTOR{})) + if sdLen < min { + sdLen = min + } var src []byte h := (*unsafeheader.Slice)(unsafe.Pointer(&src)) diff --git a/vendor/modules.txt b/vendor/modules.txt index 2bef0e5f6..ea2471408 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -149,7 +149,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.20210403045716-a3be78c4ccf6 +# github.com/jesseduffield/gocui v0.3.1-0.20210405041826-439abd8b6e07 ## explicit github.com/jesseduffield/gocui # github.com/jesseduffield/termbox-go v0.0.0-20200823212418-a2289ed6aafe @@ -235,7 +235,7 @@ golang.org/x/crypto/ssh/knownhosts golang.org/x/net/context golang.org/x/net/internal/socks golang.org/x/net/proxy -# golang.org/x/sys v0.0.0-20210402192133-700132347e07 +# golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57 ## explicit golang.org/x/sys/cpu golang.org/x/sys/internal/unsafeheader -- cgit v1.2.3