Make mouselook use internal extended command

... instead of faking a key press
This commit is contained in:
Pasi Kallinen
2021-07-21 12:23:25 +03:00
parent bfe8727c59
commit a5e5435619
6 changed files with 26 additions and 17 deletions
+1 -1
View File
@@ -1767,7 +1767,7 @@ ignore_extcmd(int idx)
/* #shell or #suspect might not be available;
'extmenu' option controls whether we show full list
or just the traditional extended commands */
if ((extcmdlist[idx].flags & CMD_NOT_AVAILABLE) != 0
if ((extcmdlist[idx].flags & (CMD_NOT_AVAILABLE|INTERNALCMD)) != 0
|| ((extcmdlist[idx].flags & AUTOCOMPLETE) == 0 && !ec_full_list)
|| strlen(extcmdlist[idx].ef_txt) < 2) /* ignore "#" and "?" */
return TRUE;