From 9cdea0d6087165f1dcadf3adc419ebc82049ffd5 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Tue, 12 Sep 2006 17:19:47 +0000 Subject: [PATCH] Missing update of view->startline when the line to delete is the first of the view and the first of the view buffer. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4343 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/textbuffer-view.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index ef31e403..beddae19 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -1147,6 +1147,7 @@ static void view_remove_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line, linecount, FALSE); view->ypos -= realcount; view->empty_linecount += linecount-realcount; + view->startline = view->startline->next; } } else { if (textbuffer_line_exists_after(view->bottom_startline,