diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-11-08 15:28:01 +0100 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-11-08 15:28:01 +0100 |
| commit | b9e2bc280befaf259bb5a61d1b6e41de3b8ed3c7 (patch) | |
| tree | f9bfcdb3ab89a6f2b9e800c28f6b6bbb10d2378a /bb.h | |
| parent | 8df4cceca0a27f192ae57bbc117674a8773082df (diff) | |
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.
Diffstat (limited to 'bb.h')
| -rw-r--r-- | bb.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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]; |
