plugins/imgview | 6 +++++- diff --git a/plugins/imgview b/plugins/imgview index a5fafbf5784cec79e013561fb283ca778a971c5e..daa08452d2f3d37623878c28efc1bd74a7396ae9 100755 --- a/plugins/imgview +++ b/plugins/imgview @@ -26,7 +26,11 @@ target="$(abspath "$2")" count="$(listimages | grep -a -m 1 -ZznF "$target" | cut -d: -f1)" if [ -n "$count" ]; then - listimages | xargs -0 "$1" -n "$count" -- + if [ "$1" = 'sxiv' ]; then + listimages | xargs -0 "$1" -an "$count" -- + else + listimages | xargs -0 "$1" -n "$count" -- + fi else shift "$1" -- "$@" # fallback