hirc

IRC client
Log | Files | Refs

commit 68e4ee7efa92da16a70eb36762e7d07c594828f8
parent 8be8fa1bd18d9a72c6a9a51c02b6be6d03225c23
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 31 Oct 2021 22:27:31 +0000

ui.c: this is x not y

Diffstat:
Mui.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ui.c b/ui.c @@ -249,17 +249,17 @@ void ui_draw_input(void) { char *p; int offset; - int y; + int x; wmove(windows[Win_input].window, 0, 0); - for (y = 0; y < windows[Win_input].w; y++) + for (x = 0; x < windows[Win_input].w; x++) waddch(windows[Win_input].window, ' '); wmove(windows[Win_input].window, 0, 0); /* Round input.counter down to the nearest windows[Win_input].w. * This gives "pages" that are each as long as the width of the input window */ offset = ((int) input.counter / windows[Win_input].w) * windows[Win_input].w; - for (y=0, p = input.string + offset; p && *p && y < windows[Win_input].w; p++, y++) { + for (x=0, p = input.string + offset; p && *p && x < windows[Win_input].w; p++, x++) { if (iscntrl(*p)) { /* adding 64 will turn ^C into C */ wattron(windows[Win_input].window, A_REVERSE);