Skip to content

Commit

Permalink
fix: use of deprecated method
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jan 23, 2023
1 parent d6a8349 commit 30140a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wishlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
// NewListing creates a new listing model for the given endpoints and SSH session.
// If session is nil, it is assume to be a local listing.
func NewListing(endpoints []*Endpoint, client SSHClient) *ListModel {
l := list.NewModel(nil, list.NewDefaultDelegate(), 0, 0)
l := list.New(nil, list.NewDefaultDelegate(), 0, 0)
l.Title = "Directory Listing"
l.AdditionalShortHelpKeys = func() []key.Binding {
return []key.Binding{enter}
Expand Down

0 comments on commit 30140a1

Please sign in to comment.