From 9ee8e6643150d7bb275d9396a2f82f26428d1b5e Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Wed, 8 Jan 2014 13:48:38 +0100 Subject: [PATCH] fix print_after scrollback --- src/fe-text/textbuffer-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index ec4d0e5a..c2964276 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -923,7 +923,7 @@ static void view_insert_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line) !textbuffer_line_exists_after(view->bottom_startline, line)) return; - linecount = view->cache->last_linecount; + linecount = view_get_linecount(view, line); view->ypos += linecount; if (view->empty_linecount > 0) { view->empty_linecount -= linecount; @@ -951,7 +951,7 @@ static void view_insert_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line) } if (view->window != NULL) { - ypos = view->ypos+1 - view->cache->last_linecount; + ypos = view->ypos+1 - view_get_linecount(view, line); if (ypos >= 0) subline = 0; else {