sxiv automatically plays animations (part2) (#732)

* sxiv automatically plays animations (part2)

* Update imgview

* Update imgview
This commit is contained in:
Toni Jarjour 2020-09-14 22:59:50 -04:00 committed by GitHub
parent 1912cee957
commit 240c0e5fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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