From f7e96492866b1bf818715df00610f78c45793c18 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 18 Jun 2001 15:32:05 +0000 Subject: [PATCH] /SET scrollback_lines 0 now means unlimited. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1556 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-printtext.c | 7 +++++-- 1 file 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);