]> granicus.if.org Git - nethack/commitdiff
curses - don't autocomplete wiz cmds except in wizmode
authorTangles <andyrthomson@gmail.com>
Fri, 25 May 2018 13:06:51 +0000 (23:06 +1000)
committernhmall <nhmall@nethack.org>
Sun, 2 Dec 2018 16:19:56 +0000 (11:19 -0500)
win/curses/cursdial.c

index 284a0d811c5f1a6fc73005ac2e622dd85da29975..829836fd4a3cb3e720d24503d58bf312e7b8ed66 100644 (file)
@@ -419,6 +419,8 @@ curses_ext_cmd()
             ret = -1;
         }
         for (count = 0; extcmdlist[count].ef_txt; count++) {
+            if (!wizard && (extcmdlist[count].flags & WIZMODECMD))
+                continue;
             if (!(extcmdlist[count].flags & AUTOCOMPLETE))
                 continue;
             if (strlen(extcmdlist[count].ef_txt) > (size_t) prompt_width) {