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:
parent
7c9438c172
commit
f7e9649286
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user