From b9e2bc280befaf259bb5a61d1b6e41de3b8ed3c7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 8 Nov 2019 15:28:01 +0100 Subject: Cleanup of bb->selected (renamed from bb->firstselected) to ensure that $n arguments for scripts are in FIFO order instead of LIFO order (i.e. $1 is the first selected item). `Ctrl-a` is also now bound to use `+select` instead of `+select: *` which ensures that the correct sorting order is preserved. --- bb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bb.h') diff --git a/bb.h b/bb.h index d80f48b..ec1440f 100644 --- a/bb.h +++ b/bb.h @@ -25,7 +25,7 @@ #include "bterm.h" // Macros: -#define BB_VERSION "0.19.0" +#define BB_VERSION "0.19.1" #ifndef PATH_MAX #define PATH_MAX 4096 @@ -136,10 +136,10 @@ typedef struct entry_s { typedef struct bb_s { entry_t *hash[HASH_SIZE]; entry_t **files; - entry_t *firstselected; + entry_t *selected; char path[PATH_MAX]; char prev_path[PATH_MAX]; - int nfiles; + int nfiles, nselected; int scroll, cursor; char sort[MAX_SORT+1]; -- cgit v1.2.3