diff options
Diffstat (limited to 'walk.cc')
-rw-r--r-- | walk.cc | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -85,18 +85,20 @@ void truncate_entries::flush() } bool print = false; - if (tailwise) { - if (count > 0 && l - i <= count) - print = true; - else if (count < 0 && l - i > - count) - print = true; - } else { + if (head_count) { if (count > 0 && i < count) print = true; else if (count < 0 && i >= - count) print = true; } + if (! print && tail_count) { + if (count > 0 && l - i <= count) + print = true; + else if (count < 0 && l - i > - count) + print = true; + } + if (print) item_handler<transaction_t>::operator()(**x); } |