mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 01:22:26 +02: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
1 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue