aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-10-03 13:49:38 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-10-03 13:49:38 -0700
commit68a3bbf7e215f2aa605f1f2086162f9d7aefda4f (patch)
treebd39e402b2ee21bc793a59dcb54f24969f316d75
parent16877a5f4b804a8f1798f2b873c445d0ebc512de (diff)
Fix for empty files not getting detected properly
-rw-r--r--bindings.bb2
1 files changed, 1 insertions, 1 deletions
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