From 3fd5ed860df09cfba6e6b486b50d46666936b520 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 1 Nov 2019 14:50:44 +0100 Subject: Moved `dirty` from being a bit on `bb` to being a global, which simplifies the code a bit, plus some other minor cleanups. --- bb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bb.h') 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; -- cgit v1.2.3