diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-04-17 00:09:49 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-04-17 00:09:49 -0700 |
| commit | 6a1522645e5ec0f3f81234ca776be8896a81bd42 (patch) | |
| tree | 527d36921b01ee67db2b52f36347dd18eb2f6550 /types.h | |
| parent | 2c44abc2c4940c9db3e76f8f24de35dd88256848 (diff) | |
Proper history functionality via cd:- and cd:+
Diffstat (limited to 'types.h')
| -rw-r--r-- | types.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |
