aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-04-17 00:09:49 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-04-17 00:09:49 -0700
commit6a1522645e5ec0f3f81234ca776be8896a81bd42 (patch)
tree527d36921b01ee67db2b52f36347dd18eb2f6550 /types.h
parent2c44abc2c4940c9db3e76f8f24de35dd88256848 (diff)
Proper history functionality via cd:- and cd:+
Diffstat (limited to 'types.h')
-rw-r--r--types.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/types.h b/types.h
index 537c9a6..f6de043 100644
--- a/types.h
+++ b/types.h
@@ -53,13 +53,19 @@ typedef struct proc_s {
} running;
} proc_t;
+// History of paths
+typedef struct bb_history_s {
+ char path[PATH_MAX];
+ struct bb_history_s *prev, *next;
+} bb_history_t;
+
// Structure for bb program state:
typedef struct bb_s {
entry_t *hash[HASH_SIZE];
entry_t **files;
entry_t *selected;
char path[PATH_MAX];
- char prev_path[PATH_MAX];
+ bb_history_t *history;
int nfiles, nselected;
int scroll, cursor;