diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-06-18 17:08:13 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-06-18 17:08:13 -0700 |
| commit | 0b977d2a8f0e850735775a870d810c4589a4dfb3 (patch) | |
| tree | 8d55d113ca8325b063bcc6a4997254a3da0e5777 | |
| parent | 634a8517b14d313291605e8761a2e0a740d990a0 (diff) | |
Fixed change that broke `bb -d` by clearing bb's path prematurely.
| -rw-r--r-- | bb.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1311,8 +1311,6 @@ void bb_browse(bb_t *bb, const char *path) goto next_input; quit: - bb->path[0] = '\0'; - populate_files(bb, 0); if (tty_out) { fputs(T_LEAVE_BBMODE, tty_out); cleanup(); @@ -1506,6 +1504,9 @@ int main(int argc, char *argv[]) if (print_dir) printf("%s\n", bb->path); + // Cleanup: + bb->path[0] = '\0'; + populate_files(bb, 0); for (entry_t *next, *e = bb->firstselected; e; e = next) { next = e->selected.next; e->selected.atme = NULL; |
