From 9055b619e06205b500178e317010b700bf63fb64 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Sun, 16 Oct 2022 12:41:28 -0700 Subject: [PATCH] Somehow when I converted ux_input.c to K&R-style, this block got indented. That indented block was causing GCC v12.2.1 from Fedora to throw a warning. --- src/curses/ux_input.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/curses/ux_input.c b/src/curses/ux_input.c index 93a1676..b94a938 100644 --- a/src/curses/ux_input.c +++ b/src/curses/ux_input.c @@ -716,13 +716,13 @@ zchar os_read_line (int bufmax, zchar *buf, int timeout, int width, int x2, max; if (scrpos >= width) scrpos = width - 1; - move(y, x + scrpos); - /* Maybe there's a cleaner way to do this, - * but refresh() is still needed here to - * print spaces. --DG - */ - refresh(); - ch = unix_read_char(1); + move(y, x + scrpos); + /* Maybe there's a cleaner way to do this, + * but refresh() is still needed here to + * print spaces. --DG + */ + refresh(); + ch = unix_read_char(1); getyx(stdscr, y, x2); x2++; width = z_header.screen_width - margin; -- 2.34.1