Command repeating by using cmd queues
This replaces the old pushq/saveq arrays (which were used to save the keys pressed by the user for repeating a previous command) with a new command queue. This means there's no hard-coded limit to the saved keys, and it can repeat extended commands which are not bound to any key.
This commit is contained in:
@@ -296,12 +296,9 @@ tty_get_ext_cmd(void)
|
||||
if (nmatches != -1)
|
||||
pline("%s%.60s: unknown extended command.",
|
||||
visctrl(extcmd_char[0]), buf);
|
||||
savech(0); /* reset do-again buffer */
|
||||
savech(extcmd_char[0]);
|
||||
return -1;
|
||||
}
|
||||
|
||||
savech_extcmd(buf, TRUE); /* savech() for extcmd_char+buf[...]+'\n' */
|
||||
return ecmatches[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user