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:
@@ -1557,12 +1557,8 @@ X11_get_ext_cmd(void)
|
||||
(void) x_event(EXIT_ON_EXIT);
|
||||
|
||||
if (extended_cmd_selected < 0) {
|
||||
if (!g.in_doagain)
|
||||
savech(0);
|
||||
return -1;
|
||||
}
|
||||
if (!g.in_doagain)
|
||||
savech_extcmd(command_list[extended_cmd_selected], TRUE);
|
||||
return command_indx[extended_cmd_selected];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user