mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Merge pull request #10 from ailin-nemui/print_after-scrollback
fix print_after scrollback
This commit is contained in:
commit
6a840c17bf
@ -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))
|
!textbuffer_line_exists_after(view->bottom_startline, line))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
linecount = view->cache->last_linecount;
|
linecount = view_get_linecount(view, line);
|
||||||
view->ypos += linecount;
|
view->ypos += linecount;
|
||||||
if (view->empty_linecount > 0) {
|
if (view->empty_linecount > 0) {
|
||||||
view->empty_linecount -= linecount;
|
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) {
|
if (view->window != NULL) {
|
||||||
ypos = view->ypos+1 - view->cache->last_linecount;
|
ypos = view->ypos+1 - view_get_linecount(view, line);
|
||||||
if (ypos >= 0)
|
if (ypos >= 0)
|
||||||
subline = 0;
|
subline = 0;
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user