summaryrefslogtreecommitdiffstats
path: root/source/history.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/history.c')
-rw-r--r--source/history.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/history.c b/source/history.c
index 6b4a9794..4966ffe2 100644
--- a/source/history.c
+++ b/source/history.c
@@ -38,8 +38,6 @@
#include "history.h"
#include "settings.h"
-#define HISTORY_MAX_ENTRIES 25
-
/**
* History element
*/
@@ -70,7 +68,7 @@ static void __history_write_element_list ( FILE *fd, _element **list, unsigned i
int min_value = list[length - 1]->index;
// Set the max length of the list.
- length = ( length > HISTORY_MAX_ENTRIES ) ? HISTORY_MAX_ENTRIES : length;
+ length = ( length > config.max_history_size ) ? config.max_history_size: length;
// Write out entries.
for ( unsigned int iter = 0; iter < length; iter++ ) {