mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-01 00:54:58 +02:00
various changes to improve integration tests
This commit is contained in:
3
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
3
vendor/github.com/jesseduffield/gocui/view.go
generated
vendored
@ -1245,6 +1245,9 @@ func (v *View) SelectedLineIdx() int {
|
||||
|
||||
// expected to only be used in tests
|
||||
func (v *View) SelectedLine() string {
|
||||
if len(v.lines) == 0 {
|
||||
return ""
|
||||
}
|
||||
line := v.lines[v.SelectedLineIdx()]
|
||||
str := lineType(line).String()
|
||||
return strings.Replace(str, "\x00", " ", -1)
|
||||
|
Reference in New Issue
Block a user