Scroll the input window
I was wondering if I should instead make input wrap, but then wordWrap would need to both support showing formatting and persisting styles across to strings, and it would need to move the window pad up and down a bunch, etc.weechat-hashes
parent
eb91347308
commit
a7b0ed9907
5
ui.c
5
ui.c
|
@ -220,10 +220,11 @@ void uiDraw(void) {
|
||||||
1, 0,
|
1, 0,
|
||||||
BOTTOM - 1, RIGHT
|
BOTTOM - 1, RIGHT
|
||||||
);
|
);
|
||||||
// TODO: Input scrolling.
|
int y, x;
|
||||||
|
getyx(input, y, x);
|
||||||
pnoutrefresh(
|
pnoutrefresh(
|
||||||
input,
|
input,
|
||||||
0, 0,
|
0, (x > RIGHT ? x - RIGHT : 0),
|
||||||
BOTTOM, 0,
|
BOTTOM, 0,
|
||||||
BOTTOM, RIGHT
|
BOTTOM, RIGHT
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue