forked from PsychoticNinja/irssi
Merge pull request #948 from ailin-nemui/invalid-startline
invalidate startline and bottom_startline when hidden (cherry picked from commit 011372ecdd966531c1fd6638a3c5b239c27112ed)
This commit is contained in:
parent
33dcf7a337
commit
eab3608651
@ -1210,6 +1210,11 @@ static void view_remove_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
|
|||||||
if (is_last == 1)
|
if (is_last == 1)
|
||||||
view->startline = NULL;
|
view->startline = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (view->startline == line) {
|
||||||
|
view->startline = line->next;
|
||||||
|
view->subline = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (textbuffer_line_exists_after(view->bottom_startline,
|
if (textbuffer_line_exists_after(view->bottom_startline,
|
||||||
line)) {
|
line)) {
|
||||||
@ -1219,6 +1224,11 @@ static void view_remove_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
|
|||||||
view->empty_linecount += linecount-realcount;
|
view->empty_linecount += linecount-realcount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (view->bottom_startline == line) {
|
||||||
|
view->bottom_startline = view->bottom_startline->next;
|
||||||
|
view->bottom_subline = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (textbuffer_line_exists_after(view->startline,
|
if (textbuffer_line_exists_after(view->startline,
|
||||||
line)) {
|
line)) {
|
||||||
view_remove_line_update_startline(view, line,
|
view_remove_line_update_startline(view, line,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user