diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-10-03 13:49:38 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-10-03 13:49:38 -0700 |
| commit | 68a3bbf7e215f2aa605f1f2086162f9d7aefda4f (patch) | |
| tree | bd39e402b2ee21bc793a59dcb54f24969f316d75 /bindings.bb | |
| parent | 16877a5f4b804a8f1798f2b873c445d0ebc512de (diff) | |
Fix for empty files not getting detected properly
Diffstat (limited to 'bindings.bb')
| -rw-r--r-- | bindings.bb | 2 |
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 |
