From 09f0f9ce14ca8c109f411fda641c098efa03ab2f Mon Sep 17 00:00:00 2001 From: Shinyu <119526243+imshinyu@users.noreply.github.com> Date: Sat, 6 Dec 2025 16:08:36 +0100 Subject: [PATCH] Reposition 'Next page' option in CLI so that it makes sense --- wallhaven/cli.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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