From ecc0a4d38bf8bce7719f6297a095fc679a8d4e6f Mon Sep 17 00:00:00 2001 From: Oktay Imanzade <50494084+TheUtopian@users.noreply.github.com> Date: Thu, 29 Feb 2024 04:30:06 +0400 Subject: [PATCH] preview-tabbed: fixed if statement --- plugins/preview-tabbed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/preview-tabbed b/plugins/preview-tabbed index 625219fc..8ec2f7be 100755 --- a/plugins/preview-tabbed +++ b/plugins/preview-tabbed @@ -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