summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-02 00:27:57 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-02 00:27:57 +0000
commit397def0d3c522e649d1ed8b93a1e92dcc515fd9b (patch)
treeebe0d1df2dc1a3676a96ea2a12a1669a07d1bddd
parentf3e4224748351e0f69e06bdb045f442c0736f156 (diff)
downloadirssi-397def0d3c522e649d1ed8b93a1e92dcc515fd9b.zip
if you were at the top of the scrollback buffer and the first line line
was removed from buffer, ypos was updated wrong and it messed up some things. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@271 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-text/gui-printtext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c
index 366a1a89..c53e4674 100644
--- a/src/fe-text/gui-printtext.c
+++ b/src/fe-text/gui-printtext.c
@@ -118,6 +118,7 @@ static void remove_first_line(WINDOW_REC *window)
/* first line in screen removed */
gui->startline = gui->startline->next;
gui->subline = 0;
+ gui->ypos--;
}
if (gui->bottom_startline->prev == NULL) {
/* bottom line removed (shouldn't happen?) */