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
C. McEnroe 2020-02-05 18:18:25 -05:00
parent eb91347308
commit a7b0ed9907
1 changed files with 3 additions and 2 deletions

5
ui.c
View File

@ -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
); );