diff options
author | Ailin Nemui <ailin@esf51.localdomain> | 2014-01-08 13:48:38 +0100 |
---|---|---|
committer | Ailin Nemui <ailin@esf51.localdomain> | 2014-06-11 11:00:26 +0200 |
commit | 9ee8e6643150d7bb275d9396a2f82f26428d1b5e (patch) | |
tree | 9445a97c66e5dd7d7325905c09c4a1944b993a53 /src/fe-text | |
parent | a6507f827ba968b0e02198fceb34711d0ff0ab5c (diff) | |
download | irssi-9ee8e6643150d7bb275d9396a2f82f26428d1b5e.zip |
fix print_after scrollback
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/textbuffer-view.c | 4 |
1 files 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 { |