diff --git a/wallhaven/cli.go b/wallhaven/cli.go index 6e5c3b2..63244d2 100644 --- a/wallhaven/cli.go +++ b/wallhaven/cli.go @@ -18,10 +18,6 @@ func search(images ImagesResponse) (string, error) { return "", fmt.Errorf("No collections from this user.") } - if images.Meta.LastPage > page { - selections = append(selections, "Next page -->") - } - if page > 1 { selections = append(selections, "Previous page <--") } @@ -31,6 +27,10 @@ func search(images ImagesResponse) (string, error) { selections = append(selections, preview) } + if images.Meta.LastPage > page { + selections = append(selections, "Next page -->") + } + selection, err := ShowSelection(selections, true) if err != nil { return "", err