From 240c0e5fedd35c8aa17d379b510e1345ea024a23 Mon Sep 17 00:00:00 2001 From: Toni Jarjour <39845673+tonijarjour@users.noreply.github.com> Date: Mon, 14 Sep 2020 22:59:50 -0400 Subject: [PATCH] sxiv automatically plays animations (part2) (#732) * sxiv automatically plays animations (part2) * Update imgview * Update imgview --- plugins/imgview | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/imgview b/plugins/imgview index a5fafbf5..daa08452 100755 --- a/plugins/imgview +++ b/plugins/imgview @@ -26,7 +26,11 @@ view_dir() { 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