File src/hstr_history.c changed (mode: 100644) (index 9390796..7e3edb8) |
... |
... |
typedef struct { |
21 |
21 |
|
|
22 |
22 |
static HistoryItems *prioritizedHistory; |
static HistoryItems *prioritizedHistory; |
23 |
23 |
static bool dirty; |
static bool dirty; |
|
24 |
|
#define BLACKLIST_SIZE 5 |
24 |
25 |
static const char *commandBlacklist[] = {"ls", "pwd", "cd", "hh", "mc"}; |
static const char *commandBlacklist[] = {"ls", "pwd", "cd", "hh", "mc"}; |
25 |
26 |
|
|
26 |
27 |
#ifdef DEBUG_RADIX |
#ifdef DEBUG_RADIX |
|
... |
... |
HistoryItems *get_prioritized_history() |
74 |
75 |
HashSet blacklist; |
HashSet blacklist; |
75 |
76 |
int i; |
int i; |
76 |
77 |
hashset_init(&blacklist); |
hashset_init(&blacklist); |
77 |
|
for(i=0; i<4; i++) { |
|
|
78 |
|
for(i=0; i<BLACKLIST_SIZE; i++) { |
78 |
79 |
hashset_add(&blacklist, commandBlacklist[i]); |
hashset_add(&blacklist, commandBlacklist[i]); |
79 |
80 |
} |
} |
80 |
81 |
|
|