textbuffer_view_remove_line() fixes (with a small kludge..)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1741 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-08-12 18:25:43 +00:00 committed by cras
commit 08b9062028
2 changed files with 44 additions and 31 deletions

View file

@ -308,6 +308,8 @@ void textbuffer_remove(TEXT_BUFFER_REC *buffer, LINE_REC *line)
line->next : line->prev;
}
line->prev = line->next = NULL;
buffer->lines_count--;
textbuffer_line_unref(buffer, line);
}