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
6
ui.c
6
ui.c
|
@ -634,8 +634,10 @@ static void reflow(struct Window *window) {
|
|||
}
|
||||
flowed += lines;
|
||||
}
|
||||
wscrl(window->pad, -(WindowLines - 1 - flowed));
|
||||
wmove(window->pad, WindowLines - 1, RIGHT);
|
||||
if (flowed < WindowLines) {
|
||||
wscrl(window->pad, -(WindowLines - 1 - flowed));
|
||||
wmove(window->pad, WindowLines - 1, RIGHT);
|
||||
}
|
||||
}
|
||||
|
||||
static void resize(void) {
|
||||
|
|
Loading…
Reference in New Issue