summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2006-09-12 16:06:14 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2006-09-12 16:06:14 +0000
commitc08a754d1e1e0642035c9f4cb5173cbbe790598e (patch)
tree94cefb9eecf77661799473b5214af4ccd1008c4c /src
parent35574b10c487fdf174dca6a0fc1e746698454880 (diff)
downloadirssi-c08a754d1e1e0642035c9f4cb5173cbbe790598e.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/textbuffer-view.c3
1 files changed, 1 insertions, 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 -