nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bca5763cf7b4bf9269c44af1a2c964a2566a63c3
parent 9cbb7f540cda9e1b9f7526712d87c9bfd5a88412
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu, 13 May 2021 19:29:16 +0530

Selection marks in reverse bold

Diffstat:
Msrc/nnn.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -253,7 +253,7 @@ typedef struct entry { mode_t mode; /* 4 bytes */ off_t size; /* 8 bytes */ struct { - ulong_t blocks : 40; /* 8 bytes (enough for 512 TiB in 512B blocks allocated) */ + ulong_t blocks : 40; /* 5 bytes (enough for 512 TiB in 512B blocks allocated) */ ulong_t nlen : 16; /* 2 bytes (length of file name) */ ulong_t flags : 8; /* 1 byte (flags specific to the file) */ }; @@ -3787,7 +3787,7 @@ static void printent(const struct entry *ent, uint_t namecols, bool sel) uchar_t color_pair = get_color_pair_name_ind(ent, &ind, &attrs); - addch((ent->flags & FILE_SELECTED) ? '+' | A_REVERSE : ' '); + addch((ent->flags & FILE_SELECTED) ? '+' | A_REVERSE | A_BOLD : ' '); if (g_state.oldcolor) resetdircolor(ent->flags);