mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
bump gocui to be on 'simple' branch.
The master branch of gocui contains stuff I added for lazynpm which changes how the cursor is used. This will provide some benefits to lazygit as well but I don't yet have the motivation to make the required changed in lazygit to support it. So we're gonna be on the branch named 'simple' rather than master until I fix that up.
This commit is contained in:
7
vendor/github.com/go-errors/errors/error.go
generated
vendored
7
vendor/github.com/go-errors/errors/error.go
generated
vendored
@ -91,6 +91,10 @@ func New(e interface{}) *Error {
|
||||
// fmt.Errorf("%v"). The skip parameter indicates how far up the stack
|
||||
// to start the stacktrace. 0 is from the current call, 1 from its caller, etc.
|
||||
func Wrap(e interface{}, skip int) *Error {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
switch e := e.(type) {
|
||||
@ -117,6 +121,9 @@ func Wrap(e interface{}, skip int) *Error {
|
||||
// up the stack to start the stacktrace. 0 is from the current call,
|
||||
// 1 from its caller, etc.
|
||||
func WrapPrefix(e interface{}, prefix string, skip int) *Error {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
err := Wrap(e, 1+skip)
|
||||
|
||||
|
Reference in New Issue
Block a user