1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05: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 */ /* remove lines by line count */
while (view->buffer->lines_count > scrollback_lines) { while (view->buffer->lines_count > scrollback_lines) {
line = view->buffer->lines->data; line = view->buffer->lines->data;
if (line->info.time >= old_time) { if (line->info.time >= old_time ||
/* too new line, don't remove yet */ 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; break;
} }
textbuffer_view_remove_line(view, line); textbuffer_view_remove_line(view, line);