Make mouselook use internal extended command
... instead of faking a key press
This commit is contained in:
@@ -119,7 +119,7 @@ interesting_command(unsigned indx, int cmds)
|
||||
if (!strcmp("?", extcmdlist[indx].ef_txt))
|
||||
return true;
|
||||
// some commands might have been compiled-out; don't show them
|
||||
if ((extcmdlist[indx].flags & CMD_NOT_AVAILABLE) != 0)
|
||||
if ((extcmdlist[indx].flags & (CMD_NOT_AVAILABLE|INTERNALCMD)) != 0)
|
||||
return false;
|
||||
// if picking from normal mode-only don't show wizard mode commands
|
||||
// or if picking from wizard mode-only don't show normal commands
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -252,7 +252,7 @@ ext_cmd_getlin_hook(char *base)
|
||||
|
||||
com_index = -1;
|
||||
for (oindex = 0; extcmdlist[oindex].ef_txt != (char *) 0; oindex++) {
|
||||
if (extcmdlist[oindex].flags & CMD_NOT_AVAILABLE)
|
||||
if (extcmdlist[oindex].flags & (CMD_NOT_AVAILABLE|INTERNALCMD))
|
||||
continue;
|
||||
if ((extcmdlist[oindex].flags & AUTOCOMPLETE)
|
||||
&& !(!wizard && (extcmdlist[oindex].flags & WIZMODECMD))
|
||||
|
||||
Reference in New Issue
Block a user