That indented block was causing GCC v12.2.1 from Fedora to throw a warning.
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;