diff options
author | Timo Sirainen <cras@irssi.org> | 2001-06-18 15:32:05 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-06-18 15:32:05 +0000 |
commit | f7e96492866b1bf818715df00610f78c45793c18 (patch) | |
tree | 3332fa6d03ad68e3f399af73b4d24b47cc9a91c1 /src/fe-text/gui-printtext.c | |
parent | 7c9438c1727b4eadd2ca9aeed07a9162ff686731 (diff) | |
download | irssi-f7e96492866b1bf818715df00610f78c45793c18.zip |
/SET scrollback_lines 0 now means unlimited.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1556 dbcabf3a-b0e7-0310-adc4-f8d773084564
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); |