mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
preview-tabbed: fixed if statement
This commit is contained in:
parent
7efd6db873
commit
ecc0a4d38b
|
@ -180,7 +180,7 @@ previewer_loop () {
|
|||
fi
|
||||
;;
|
||||
inode/directory)
|
||||
if [[ -z $PICTURES_DIR && "$FILE" == *"$PICTURES_DIR"* ]]; then
|
||||
if [[ ! -z $PICTURES_DIR && "$FILE" == *"$PICTURES_DIR"* ]] ; then
|
||||
if type sxiv >/dev/null 2>&1 ; then
|
||||
( sxiv -te "$XID" "$FILE" 2>/dev/null || $TERMINAL "$XID" -e nnn "$FILE" ) &
|
||||
elif type nsxiv >/dev/null 2>&1 ; then
|
||||
|
|
Loading…
Reference in a new issue