From a489fa501e07cb58d7d92ae32060aa9f728ec027 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Sun, 26 Nov 2017 11:34:45 -0500 Subject: [PATCH] UltraRogue: fix options menu. When displaying options, get_restr() did not position the cursor correctly, resulting in values being duplicated. --- urogue/options.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/urogue/options.c b/urogue/options.c index 695ab7c..64b9864 100644 --- a/urogue/options.c +++ b/urogue/options.c @@ -546,8 +546,10 @@ get_restr(opt_arg *opt, WINDOW *win) getyx(win, oy, ox); put_str(opt, win); - if (!use_savedir) - return get_str(opt, win); + if (!use_savedir) { + wmove(win, oy, ox); + return get_str(opt, win); + } getyx(win, ny, nx); while(keep_up)