From 97dd1cb0c29481fd71de4923089d758e0d31f365 Mon Sep 17 00:00:00 2001 From: kaffeekanne Date: Fri, 11 Dec 2020 20:33:01 +0100 Subject: Set input window size to max window size Input window size was one cell off, therefore terminal themes with background color set were rendered incorrectly, fixes #1458 --- src/ui/inputwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui') 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; -- cgit 1.4.1-2-gfad0