diff options
Diffstat (limited to 'src/fe-text/gui-printtext.c')
-rw-r--r-- | src/fe-text/gui-printtext.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c index dab185da..fd82a697 100644 --- a/src/fe-text/gui-printtext.c +++ b/src/fe-text/gui-printtext.c @@ -58,8 +58,11 @@ static void remove_old_lines(TEXT_BUFFER_VIEW_REC *view) /* remove lines by line count */ while (view->buffer->lines_count > scrollback_lines) { line = view->buffer->lines->data; - if (line->info.time >= old_time) { - /* too new line, don't remove yet */ + if (line->info.time >= old_time || + scrollback_lines == 0) { + /* too new line, don't remove yet - also + if scrollback_lines is 0, we want to check + only scrollback_hours setting. */ break; } textbuffer_view_remove_line(view, line); |