]> Sergey Matveev's repositories - nnn.git/commitdiff
Add '*' suffix to executables
authorsin <sin@2f30.org>
Tue, 21 Oct 2014 14:36:23 +0000 (15:36 +0100)
committersin <sin@2f30.org>
Tue, 21 Oct 2014 14:36:23 +0000 (15:36 +0100)
noice.c

diff --git a/noice.c b/noice.c
index 12c8ae90d5917721de9cfcee793c644485aa540e..9088c83aff5218fd5d36487d7bb2b7222df692d8 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -349,6 +349,9 @@ printent(struct entry *ent, int active)
        } else if (S_ISLNK(ent->mode)) {
                cm = '@';
                maxlen--;
+       } else if (ent->mode & S_IXUSR) {
+               cm = '*';
+               maxlen--;
        }
 
        /* No text wrapping in entries */