Only scroll after reflow if necessary
If we've already filled up every line of the window, there is no need to scroll.weechat-hashes
parent
fa29c37911
commit
cf83e95114
2
ui.c
2
ui.c
|
@ -634,9 +634,11 @@ static void reflow(struct Window *window) {
|
||||||
}
|
}
|
||||||
flowed += lines;
|
flowed += lines;
|
||||||
}
|
}
|
||||||
|
if (flowed < WindowLines) {
|
||||||
wscrl(window->pad, -(WindowLines - 1 - flowed));
|
wscrl(window->pad, -(WindowLines - 1 - flowed));
|
||||||
wmove(window->pad, WindowLines - 1, RIGHT);
|
wmove(window->pad, WindowLines - 1, RIGHT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void resize(void) {
|
static void resize(void) {
|
||||||
mvwin(marker, LINES - 2, 0);
|
mvwin(marker, LINES - 2, 0);
|
||||||
|
|
Loading…
Reference in New Issue