1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

/SET scrollback_lines 0 now means unlimited.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1556 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-06-18 15:32:05 +00:00 committed by cras
parent 7c9438c172
commit f7e9649286

View File

@ -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);