From c08a754d1e1e0642035c9f4cb5173cbbe790598e Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Tue, 12 Sep 2006 16:06:14 +0000 Subject: [PATCH] Do not restore the previous view when deleting the first line of the current one. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4342 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/textbuffer-view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index 51a9561c..ef31e403 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -1095,8 +1095,7 @@ static void view_remove_line_update_startline(TEXT_BUFFER_VIEW_REC *view, int scroll; if (view->startline == line) { - view->startline = view->startline->prev != NULL ? - view->startline->prev : view->startline->next; + view->startline = view->startline->next; view->subline = 0; } else { scroll = view->height -