aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-11-01 14:50:44 +0100
committerBruce Hill <bruce@bruce-hill.com>2019-11-01 14:50:44 +0100
commit3fd5ed860df09cfba6e6b486b50d46666936b520 (patch)
tree9bb1b824a50fc0176bdb45bf44fde7a2e70d5970 /bb.h
parent02beee84fc9121da14db4422d1721825acc9ed17 (diff)
Moved `dirty` from being a bit on `bb` to being a global, which
simplifies the code a bit, plus some other minor cleanups.
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bb.h b/bb.h
index fe20c91..0ae8e73 100644
--- a/bb.h
+++ b/bb.h
@@ -68,6 +68,7 @@
fputs(" Press any key to continue...\033[0m ", tty_out); \
fflush(tty_out); \
while (bgetkey(tty_in, NULL, NULL) == -1) usleep(100); \
+ dirty = 1; \
} while (0)
#define LL_PREPEND(head, node, name) do { \
@@ -143,7 +144,6 @@ typedef struct bb_s {
char sort[MAX_SORT+1];
char columns[MAX_COLS+1];
- unsigned int dirty : 1;
unsigned int show_dotdot : 1;
unsigned int show_dot : 1;
unsigned int show_dotfiles : 1;