mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
sxiv automatically plays animations (part2) (#732)
* sxiv automatically plays animations (part2) * Update imgview * Update imgview
This commit is contained in:
parent
1912cee957
commit
240c0e5fed
|
@ -26,7 +26,11 @@ view_dir() {
|
|||
count="$(listimages | grep -a -m 1 -ZznF "$target" | cut -d: -f1)"
|
||||
|
||||
if [ -n "$count" ]; then
|
||||
if [ "$1" = 'sxiv' ]; then
|
||||
listimages | xargs -0 "$1" -an "$count" --
|
||||
else
|
||||
listimages | xargs -0 "$1" -n "$count" --
|
||||
fi
|
||||
else
|
||||
shift
|
||||
"$1" -- "$@" # fallback
|
||||
|
|
Loading…
Reference in a new issue