mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Replaced GList by adding prev/next pointers to LINE_REC. This should make
some things faster and take a bit less memory. Also fixed an evil memory leak. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1611 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
dd37b9ca2c
commit
9eed52fa40
7 changed files with 135 additions and 117 deletions
|
|
@ -57,7 +57,7 @@ static void remove_old_lines(TEXT_BUFFER_VIEW_REC *view)
|
|||
scrollback_lines+scrollback_burst_remove) {
|
||||
/* remove lines by line count */
|
||||
while (view->buffer->lines_count > scrollback_lines) {
|
||||
line = view->buffer->lines->data;
|
||||
line = view->buffer->first_line;
|
||||
if (line->info.time >= old_time ||
|
||||
scrollback_lines == 0) {
|
||||
/* too new line, don't remove yet - also
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue