summaryrefslogtreecommitdiff
path: root/src/fe-text/textbuffer.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-08-12 18:25:43 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-08-12 18:25:43 +0000
commit08b906202805f0cb6358e1ab0c057eaa5d8082dc (patch)
treee165c5f13ec1903a87bf46a55979b890a1f21c05 /src/fe-text/textbuffer.c
parent53c13065d26c6e116c66e73255297099dc973241 (diff)
downloadirssi-08b906202805f0cb6358e1ab0c057eaa5d8082dc.zip
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
Diffstat (limited to 'src/fe-text/textbuffer.c')
-rw-r--r--src/fe-text/textbuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/textbuffer.c b/src/fe-text/textbuffer.c
index adf3334d..8b0c9469 100644
--- a/src/fe-text/textbuffer.c
+++ b/src/fe-text/textbuffer.c
@@ -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);
}