aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-11-08 15:28:01 +0100
committerBruce Hill <bruce@bruce-hill.com>2019-11-08 15:28:01 +0100
commitb9e2bc280befaf259bb5a61d1b6e41de3b8ed3c7 (patch)
treef9bfcdb3ab89a6f2b9e800c28f6b6bbb10d2378a /bb.h
parent8df4cceca0a27f192ae57bbc117674a8773082df (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.h6
1 files changed, 3 insertions, 3 deletions
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];