Only scroll after reflow if necessary
If we've already filled up every line of the window, there is no need to scroll.master
parent
fa29c37911
commit
cf83e95114
2
ui.c
2
ui.c
|
@ -634,8 +634,10 @@ 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) {
|
||||||
|
|
Loading…
Reference in New Issue