From 68a3bbf7e215f2aa605f1f2086162f9d7aefda4f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 3 Oct 2019 13:49:38 -0700 Subject: [PATCH] Fix for empty files not getting detected properly --- bindings.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings.bb b/bindings.bb index 36b868e..04d2ca3 100644 --- a/bindings.bb +++ b/bindings.bb @@ -84,7 +84,7 @@ Enter,Double left click: # Open file/directory else open "$BBCURSOR"; fi else if [ -d "$BBCURSOR" ]; then bb +cd:"$BBCURSOR"; - elif file -bi "$BBCURSOR" | grep -q '^\(text/\|inode/empty\)'; then $EDITOR "$BBCURSOR"; + elif file -bi "$BBCURSOR" | grep -q '^\(text/\|inode/x-empty\)'; then $EDITOR "$BBCURSOR"; else xdg-open "$BBCURSOR"; fi fi e: # Edit file in $EDITOR