diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-12-12 08:21:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-12 08:21:55 +0100 |
commit | d4069f9c40f7e0f453079abf1f4be203e684a4d8 (patch) | |
tree | e645539b796f68bfb5df571054e24037a43dbf31 | |
parent | 8953002a2b283506a228959f97af9daa564135aa (diff) | |
parent | 97dd1cb0c29481fd71de4923089d758e0d31f365 (diff) | |
download | profani-tty-d4069f9c40f7e0f453079abf1f4be203e684a4d8.tar.gz |
Merge pull request #1461 from kaffeekanne/fix-inputwindow
Set input window size to max window size
-rw-r--r-- | src/ui/inputwin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index d4feee27..74fcfbb4 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -309,7 +309,7 @@ _inp_win_update_virtual(void) int wcols = getmaxx(stdscr); int row = screen_inputwin_row(); if (inp_win != NULL) { - pnoutrefresh(inp_win, 0, pad_start, row, 0, row, wcols - 2); + pnoutrefresh(inp_win, 0, pad_start, row, 0, row, wcols - 1); } } @@ -387,7 +387,7 @@ _inp_win_handle_scroll(void) if (col == 0) { pad_start = 0; - } else if (col >= pad_start + (wcols - 2)) { + } else if (col >= pad_start + (wcols - 1)) { pad_start = col - (wcols / 2); if (pad_start < 0) { pad_start = 0; |